【问题标题】:Flex component - When resized, resize all inner componentsFlex 组件 - 调整大小时,调整所有内部组件的大小
【发布时间】:2012-01-17 10:30:20
【问题描述】:

我的组件有很多内部组件。 当我调整容器组件(面板)的大小时,我希望所有内部组件都以相同的比例调整大小。我应该使用哪个功能?

【问题讨论】:

标签: actionscript-3 apache-flex components resize


【解决方案1】:

将宽度和高度设置为百分比而不是硬编码值。

<s:Panel title="Flexible Container" backgroundColor="0x00FF00"
        width="75%" height="75%">
        <s:TextArea id="mTA" height="100%" width="100%" 
            text="Text Area Resize" />
</s:Panel>

【讨论】:

    猜你喜欢
    • 2011-08-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-04-07
    • 2011-05-18
    • 1970-01-01
    相关资源
    最近更新 更多