开发者

How to set the initial ration of the size of child elements of a Hdividedbox

开发者 https://www.devze.com 2023-04-03 21:05 出处:网络
I have a Hdividedbox, which has three child elements. I want to set the initial ration of sizes, such that the first one开发者_JAVA百科 is 30%, the second is 40% & the third is 30% of the Hdivide

I have a Hdividedbox, which has three child elements.

I want to set the initial ration of sizes, such that the first one开发者_JAVA百科 is 30%, the second is 40% & the third is 30% of the Hdividedbox's width.

How can I do this?


Indeed - please see below for an example

<mx:HDividedBox width="100%" >
    <mx:Panel width="30%"/>
    <mx:Panel width="40%"/>
    <mx:Panel width="30%"/>
</mx:HDividedBox>


Set the child components' width to those specific percentages.

0

精彩评论

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