Flex's mx.controls.TextInput
default width is documented as:
The size of the text with a default minimum size of 22 pixels high and 160 pixels wide
Is there a way to change the initial width? 160 pixels is too wide for my application. If I specify an absolute width (width="100"
), then it doesn't scale as parent container width changes. If I specify width="100%"
, it scales to the parent container, but still defaults to 160. There is measuredWidth
, but it gets set by measure()
. I could extend TextInput
and override measure()
, but I'd rather just use TextInput
as is.
I'm using Flex 4.1.