If a dynamically sized (i.e. width100%) Box isn't big enough for it's content how to I get that box to becode scrollable instead of passing this resposiblity to it's parent. I'e I only want the box to become as large as there's space for it.
I.e. in the following example, if you resize your browser window so that the textboxes don't fit (heightwise), how do I get box1 to show scrollbars and not the entire application?
<?xml version="1.0"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%">
<mx:HDividedBox width="100%" height="100%">
<mx:VBox id="box1" backgroundColor="green" height="100%" verticalScrollPolicy="on" clipContent="true">
<mx:TextInput width="200"/>
<mx:TextInput width="200"/>
<mx:TextInput width="200"/>
<mx:TextInput width="200"/>
<mx:TextInput width="200"/>
<mx:TextInput width="200"/>
</mx:VBox>
<mx:Box backgroundColor="red" width="100%" height="100%">
</mx:Box>
</mx:HDividedBox>
</mx:Application>
I've tried with verticalScrollbarPolicy auto and on, but that didn't work.