One of the nice things about Flex is that you can default stylistic elements such as padding from a top level via CSS declarations on the Application level. However, if the property you have in mind isn’t a Flex Style, it isn’t so easy to default.
A common example is the horizontalScrollPolicy and verticalScrollPolicy values of the Container class. For various reasons, Adobe (understandably) chose to make these two values properties instead of styles. They’re defaulted to “auto” which means scrollbars are created when needed, but often it would be more convenient if they were defaulted to “off”.
Anyway, here’s one way to default those values:
Continue Reading »
Tags: default, horizontalScrollPolicy, major hack, properties, scrollbars, verticalScrollPolicy

