0

When I load the default ST app in IE10, styling is non-existant even with the following defined in app.json:

If I load in Chrome, the styling is present. I have carried out an app refresh too. I'm using ST2.3.1 with cmd 4

"css": [
         {
            "path": "resources/css/app.css",
            "platform": ["chrome", "safari", "android", "firefox"],
            "theme": "Default",
            "update": "delta"
        },
         {
            "path": "resources/css/wp.css",
            "platform": ["ie10"],
            "theme": "Default",
            "update": "delta"
        }

If I look in myapp\resources\css I can see app.css and wp.css.

jaffa
  • 26,770
  • 50
  • 178
  • 289

1 Answers1

0

Looking at the Sencha theming guide, you may need to change "theme" from "Default" to "Windows" in your second JSON object. Then do a sencha app refresh and try again.

arthurakay
  • 5,631
  • 8
  • 37
  • 62
  • Ok I'll try this. Why do you have to change the CSS file AND the theme? – jaffa Feb 19 '14 at 15:52
  • Without going into a long-winded answer, the core Sencha Touch framework sets a bunch of stuff based on the configured theme... so it's more than just CSS. – arthurakay Feb 19 '14 at 21:37
  • Can I set CSS to app.css and Theme to 'Windows' then? If they do, I think this is bad design as changing one property is reliant on another property being set too. – jaffa Feb 22 '14 at 15:35