Flex: Displaying more than 5 things at a time in DropDown (ComboBox)
I have a ComboBox in Flex with about 20 items. How do I display them all in a dropdown list without a scrollbar? Right now, Flex is displaying 5 at a time in the dropdown and putting scrolling to scroll for more.
Here's an example:
How can I enlarge the dropdown menu in this example to display all 10 items at the same time?
source to share
For those looking for the exact same thing for spark combination: for spark components that extend SkinnableDataContainer
(including ComboBox
) you can specify the layout with
requestedMinRowCount
, requestedMaxRowCount
and make as many changes as you want with the skin (this layout goes directly to the DataGroup
skinpart inside the skin).
source to share