1 Reply Latest reply: Mar 23, 2013 10:13 PM by Fredvb RSS

    style declaration in mobile app problems (not working)





      In a simple mobile Flex app, I have a simple View that has a styleName assigned to a VGroup within it. The decleration is within the same view (for sake of trying to make this work, but it's in an external css if I figure out a way to make this work).


      The padding's I'm assigning are just NOT working at all. Nothing. While if I specify in the VGroup directly it's paddingTop or another style, it works fine

      Weird behavior.



      Here's the View:

      <?xml version="1.0" encoding="utf-8"?>

      <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"

              xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView">


              <!-- Place non-visual elements (e.g., services, value objects) here -->



              .myGroup {








          <s:VGroup styleName="myGroup">

              <s:Label text="Hello" />





      Anyone have an idea why ?


      I'm using Flex 4.6/AIR 3.6 at the moment, tried it with Flex 4.9.1/AIR 3.4 too, same behavior.

      Is this a bug ? Am I doing something wrong ? Is there a hack/trick to make this work other than specifying the styles directly in the MXML ?