Use percentage to control the width and height of a Panel : Panel Layout « Container « Flex






Use percentage to control the width and height of a Panel

Use percentage to control the width and height of a Panel
            

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Panel width="70%" height="40%">
    </mx:Panel>
</mx:Application>

   
    
    
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Use VerticalLayout to layout PanelUse VerticalLayout to layout Panel
2.Set Panel layout to horizontalSet Panel layout to horizontal
3.absolute layout with Panelabsolute layout with Panel
4.Toggle includeInLayoutToggle includeInLayout
5.Panel with statusPanel with status
6.Put control into a PanelPut control into a Panel
7.Change SpanElement color whenever the user clicks on any location within that SpanElement's paragraphChange SpanElement color whenever the user clicks on any location within that SpanElement's paragraph
8.Three Panel GroupsThree Panel Groups
9.horizontalCenter and horizontalAlignhorizontalCenter and horizontalAlign