JavaScript » Layer » resizeTo

Syntax:
layer.resizeTo(outerWidth, outerHeight)

The resizeTo attribute of <Layer>  is deprecated in Javascript 1.2.

This method is used to resize a layer to the dimensions supplied with the width and height (both integers, in pixels) parameters.