开发者

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 highlight开发者_开发百科ed image.

Thanks

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

(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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜