Widget.setMinimumSize()

Availability

Flash Player 7 + TheSpringBox V1

Usage

Widget.setMinimumSize(width:String, height:String) : Object;

Parameters

width - A number stating the minimum width the widget may take in pixels.

height - A number stating the minimum height the widget may take in pixels.

Returns

Nothing.

Description

Method; sets the minimum size the widget window may take, if scaled to a size less than the minimum, the minimum size will be assumed. Calling this method will also trigger Widget.onResize, therefore if your widget is smaller than the size you are setting with Widget.setMinimusSize, your widget will expand to the new minimum. The the minimum size is set to 32x32 by default.

Example

The function in this example will set the minimum size of the widget to 200x400 pixels:

Widget.setMinimumSize(200,400);

See also

Widget.setMaximumSize()