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>
Tagged with:
 

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Spam Protection by WP-SpamFree