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.
You can create a custom
PopUpAnchorclass which extends fromPopUpAnchor, and override its determinePosition function to modify howPopUpPosition.BELOWbehaves:Setting
registrationPoint.x = -popUpWidth + unscaledWidthaligns it with the right edge of the button.Within your
DropDownListskin replace thePopUpAnchortag with your newly created class and you should have aDropDownListwhich behaves as you requested.Perhaps there’s a saner way of doing this, but I’d rather spend my time not finding out what that is.