Why does Flex recognize paddingLeft as a property on a component, but not as part of a style?

Posted by justkevin on Stack Overflow See other posts from Stack Overflow or by justkevin
Published on 2010-06-08T19:13:49Z Indexed on 2010/06/14 13:52 UTC
Read the original article Hit count: 164

Filed under:
|

In my application this works:

<s:VGroup width="100%" paddingLeft="100">
... stuff ...
</s:VGroup>

This doesn't:

<fx:Style>
        @namespace s "library://ns.adobe.com/flex/spark";
        @namespace mx "library://ns.adobe.com/flex/mx";
        .myStyle {
            paddingLeft: 100;
        }
    </fx:Style>
<s:VGroup width="100%" styleName="myStyle">
... stuff ...
</s:VGroup>

Why not?

© Stack Overflow or respective owner

Related posts about flex

Related posts about flex4