<mx:Tile width="100%" height="20">
<mx:Button label="btn"/>
<mx:Button label="btn"/>
<mx:Button label="btn"/>
<mx:Button label="btn"/>
<mx:Button label="btn"/>
<mx:Button label="btn"/>
</mx:Tile>
The above Tile has a height of 20. When I add 50 new buttons to it, a vertical scrollbar is added. How can I make it not show the scrollbar but change it’s height dynamically so that all the added items are always shown. Kinda like an “expanding” tile.
The WindowShade component from flexlib solved this. It can be found here: http://code.google.com/p/flexlib/wiki/ComponentList (look for WindowShade)
Here’s a sample: http://flexlib.googlecode.com/svn/trunk/examples/WindowShade_Sample.swf