开发者

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

开发者 https://www.devze.com 2022-12-27 02:28 出处:网络
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

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

精彩评论

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

关注公众号