开发者

FLEX: wrap buttons in the HBox, instead of seeing scrolling bar

I have a HBox and I dynamically add Buttons into it. I want to distribute such buttons horizontally, however I would like to place there on more rows if there is not anymore horizontal space, instead of seeing the scrolling bar.

How can I do that?

  <mx:HBox id="tagsPopup" visible="false" horizontalAlign="center" width="100">
        <mx:LinkButton label="Tag1"开发者_Python百科 />
        <mx:LinkButton label="Tag2" />
        <mx:LinkButton label="Tag3" />
        <mx:LinkButton label="Tag4" />      
    </mx:HBox>


HBox renders only on one horizontal row. Use a Tile for what you want.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜