I created a โcreatedโ skin for DropDownList (that is, changed the default spark.skins.spark.DropDownListSkin ) and spark.skins.spark.DropDownListButtonSkin for my button.
I managed to get him to do almost everything I wanted, except that the list that drops out is aligned to the right of the button. Setting <s:PopUpAnchor popUpWidthMatchesAnchorWidth=*false* /> in the button sub-skin allows you to define the list by the width of the elements, because, obviously, the width of the button / of the entire control is much smaller than required.
This is what it looks like now (by default popUpPosition = "bottom")

Setting popUpPosition = "right"

That's what I would like to look like

So, at this point I need to either dig out the whole spark source code for DropDownList to better understand how everything works, or maybe someone here knows how to do this already.
Any ideas would be appreciated.
source share