开发者

Automatically resize according to the resolution(FLEX)

i am developin开发者_如何学运维g an application with Adobe Flex in Flex builder 3. my application works fine in 1024 x 768 resolution but it doesn't fit in my laptop's screen which happen to have 1366 x 768. my question is how to make my application automatically resize according to the resolution ?

Thanks !


You don't do absolute positioning, you create a UI based on precentages and on anchoring to edges, this way, flex will handle resizing for you.

if you use absolute positioning you will need to listen to the Resize event and then start calculating the height, width, x, y of each element.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜