Mega Code Archive

 
Categories / Flex / Container
 

Width and height percentage values can resize as your application resizes

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%"     height="100%">     <mx:Panel title="Main Application" width="100%" height="100%">         <mx:HDividedBox width="100%" height="100%">             <mx:TextArea width="50%" height="100%" />             <mx:VDividedBox width="50%" height="100%">                 <mx:DataGrid width="100%" height="25%" />                 <mx:TextArea width="100%" height="75%" />             </mx:VDividedBox>         </mx:HDividedBox>     </mx:Panel> </mx:Application>