I have "created" a custom skin for DropDownList (i.e modified the default spark.skins.spark.DropDownListSkin
) and spark.skins.spark.DropDownListButtonSkin
for its button.
I have been able to get it to do almost everything I wanted, except for getting the list that drops down to align to the right of the button. Setting <s:PopUpAnchor popUpWidthMatchesAnchorWidth=*false* />
in the button sub-skin allows the list to be determined by the width of the items, because obviously the width of the button/entire control is far less than required.
Here is what it looks like now (default popUpPosition="bottom")
Setting popUpPosition="right"
Here is what I would like it to look like
So at this point, I either need to dig into all the spark source code for DropDownList to better understand how things work, or perhaps someone here knows how to do this already.
Any ideas would be appreciated.