Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Later
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
We are using CSS to completely define the layout of a Flex application. We avoid as much as we can putting skinning code inside source files other than css files. In this way, our applications are completely independent on of they way they look.
Unfortunately when it comes to width and height of a component this rule does not apply. We use constraint layout as much as possible, but it doesn't cover the case where you want one component always 10 pixels far from the right, and always with 100 pixels of width. As far as I know, this is not possible to solve easily using CSS, so we are forced either to put those measures in the middle of the code or creating a custom style, and overriding the styleChanged method, which is a bit cumbersome.