开发者

In flex, how to make a component appear on the center of screen?

In Flex, how to put some component ( like canvas ) appear at the center of the screen. ( even if there is scroll, it 开发者_StackOverflowshould be displayed at the center of the current view).


The PopUpManager's centerPopUp will do this easy, if that is what you're after.

But, if you want to display something in the center of a container that is a bit different. In that sitaution, you'll probably either have to write your own positioning code (in updateDisplayList() ) to center the component and position the others.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜