简体   繁体   中英

Flex 4: Popup Anchor : Right to Left Display of Drop down

I customized flex 4 combobox to display popup in an auto width layout. But combobox shows dropdown list from Left to right as you can see in the Left side of image.

I actually want to display dropdown starting from right side, as described in the highlighted image.

Thanks

替代文字
(source: adobe.com )

You could override the calculatePopUpPosition method to adjust the y position together with RIGHT for the popup position. Or maybe experiment with constraint based layout setting right - 0?

Its stupid that there is no BOTTOM_RIGHT property for spark.components.PopUpPosition

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/PopUpPosition.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM