Setting a minimum width and height on a WindowedApplication container in Adobe AIR
The following example shows how you can set a minimum width and height on a Adobe AIR application by setting the minWidth and minHeight properties on the WindowedApplication tag.
Full code after the jump.
<?xml version="1.0" encoding="utf-8"?> <!-- http://airexamples.com/2009/01/19/setting-a-minimum-width-and-height-on-a-windowedapplication-container-in-adobe-air/ --> <mx:WindowedApplication name="WindowedApplication_minWidth_test" xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white" minWidth="300" minHeight="200" width="550" height="400"> <mx:Form> <mx:FormItem label="width:"> <mx:Label text="{this.width}" /> </mx:FormItem> <mx:FormItem label="height:"> <mx:Label text="{this.height}" /> </mx:FormItem> </mx:Form> </mx:WindowedApplication>
