[英]Flex 4: Popup Anchor : Right to Left Display of Drop down
I customized flex 4 combobox to display popup in an auto width layout.我自定义了 flex 4 组合框以在自动宽度布局中显示弹出窗口。 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谢谢
You could override the calculatePopUpPosition method to adjust the y position together with RIGHT for the popup position.您可以覆盖 calculatePopUpPosition 方法来调整 y 位置以及弹出位置的 RIGHT。 Or maybe experiment with constraint based layout setting right - 0?或者也许尝试基于约束的布局设置正确 - 0?
Its stupid that there is no BOTTOM_RIGHT property for spark.components.PopUpPosition spark.components.PopUpPosition 没有 BOTTOM_RIGHT 属性是愚蠢的
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/PopUpPosition.html http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/PopUpPosition.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.