It is often necessary to restrict the amount that the user can resize an adobe air to prevent elements disappearing off screen. One option is to prevent resizing at all by adding this:
<resizable>false</resizable>
to the application descriptor file within “<initial window>”.
However it is far better to set a minimum (and maximum if required) width and height than remove the users ability to resize. To do this add this:
<minSize>100 200</minSize>
to the application descriptor file within “<initial window>”. The first value is the width and the second is the height. To impose a maximum do the same but use <maxSixe>.
It should be noted that if you preview your application with the previewer in the SDK or the previewer in the adobe air dreamweaver extension the minimum and maximum sizes will have no effect. You have to build and install the application to test it.
Liked this post?
Read my other posts and tweet this one.