tags:

views:

140

answers:

1

hi,

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" />
        <mx:LinkButton label="Tag2" />
        <mx:LinkButton label="Tag3" />
        <mx:LinkButton label="Tag4" />      
    </mx:HBox>

thanks

A: 

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

Cornel Creanga