Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 4.1 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Browser: Firefox 3.x
Language Found: English
Description
Adding support for the truncateToFit property on ComboBox controls.
Currently, there is no out of the box support for it. There is a workaround for the combo box elements which is declaring the item renderer to be Label, which has the truncateToFit default value set to true. This works wonderfully for the elements within the drop-down list, but the text within the box is unaffected (so once the list is collapsed, we are only left with the clipped string within the control).
Ideally, we should have the truncateToFit property exposed in the control and the behavior should apply to both the list elements as well as the drop down bar.
I am including sample code applying the current (incomplete) workaround.