Note that there are some explanatory texts on larger screens.

plurals
  1. POSencha Touch Production Build Issue with IE10 and Chrome
    primarykey
    data
    text
    <p>I am experiencing an issue with production build version of the Sencha Touch based application not being able to apply styles properly in IE10 and Chrome. </p> <p>Steps to reproduce: </p> <p>Main.js</p> <pre><code>Ext.define('Lab.view.Main', { extend: 'Ext.Panel', xtype: 'main', requires: [ ], config: { tabBarPosition: 'bottom', items: [ { xtype: 'panel', cls: 'MyFirstLogo', itemId: 'firstLogo' } ] } }); </code></pre> <p>SCSS file - app.scss</p> <pre><code>.MyFirstLogo{ height: auto !important; min-height: 100px; min-width: 404px; padding: 0px; background-image:url(../../resources/images/test1.jpeg); background-repeat:no-repeat; background-position: left; } </code></pre> <ol> <li><p>Make sure the background image URL is like this in resources/sass/app.scss - <code>../../resources/images/test1.jpeg</code>. </p></li> <li><p>Run "sencha app build production" in project root (Lab/) </p></li> <li><p>Access the application in IE10 64bit (Win 7) : <code>http://localhost/lab/build/production/Lab/</code> </p></li> <li><p>Images are not shown at all in IE10. However, when trying this in Chrome it works well. Chrome somehow is able to convert the <code>../../resources/images/test1.jpeg</code> to <code>http://localhost/lab/build/production/Lab/resources/images/test1.jpeg</code> but IE10 doesn't do it and fails to show the image. This way it also works in my local development environment as it goes with my project structure. </p></li> <li><p>In order to make it work in IE10, I have changed the image URL from <code>../../resources/images/test1.jpeg</code> to <code>resources/images/test1.jpeg</code> (This actually makes sense as resources/ directory is in the project root) in resources/sass/app.scss and rebuild it for production. In this case image starts to appear in IE10 but now when I use Chrome - Image does't show up and Chrome is trying to retrieve the image from this URL which in not right: <code>http://localhost/lab/build/production/Lab/resources/css/resources/images/test1.jpeg</code>, and it fails. This way it DOES NOT also work in my local development environment. </p></li> <li><p>This issue happens for other resources as well like "fonts". </p></li> </ol> <p>Could you please help me understand what's going on here with Sencha's Production Build version not working in both IE10 and Chrome at the same time? Is this this bug with Sencha Touch or Chrome or I am missing something here?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload