Skip navigation
Currently Being Moderated

style declaration in mobile app problems (not working)

Mar 23, 2013 9:41 PM




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=""

        xmlns:s="library://" 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 ?




More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points