ButtonBar皮肤中的TileLayout

时间:2011-07-21 14:39:25

标签: flash flex flex4 flex-spark

在我的ButtonBar皮肤中,我使用TileLayout:

<s:DataGroup id="dataGroup" width="100%" height="100%"> <s:layout> <s:TileLayout /> </s:layout> </s:DataGroup>

但是这个布局将最大宽度设置为所有ButtonBarButtons。但我不想要相同的宽度,我想要像Horizo​​ntalLayout中的行为。如何解决这个问题?

2 个答案:

答案 0 :(得分:3)

也许this FlowLayoutthis layout可以解决您的问题?

答案 1 :(得分:0)

你能解释一下为什么HoizontalLayout不适合你吗?

    <s:ButtonBar>
        <s:layout>
            <s:HorizontalLayout/>
        </s:layout>
    </s:ButtonBar>