views:

179

answers:

2

Is there a way to get the measured-width of a button label in flex based on its style properties at runtime?

A: 

I'm assuming you meant TextField, rather than String. So for TextField, make sure you set the autoSize property to something other than TextFieldAutoSize.NONE. Then you can simply grab the width value.

Jeremy White
A: 

Not on it's style properties. It does expose regular properties which give this information though.

Gregor Kiddie