Layer.resizeTo() (Method)

Adjusts the size of a layer to an absolute value.

Availability:

JavaScript - 1.2
Netscape - 4.0
Deprecated
JavaScript syntax:NmyLayer.resizeTo(anX, aY)
Argument list:anXAn X axis value
aYA Y axis value

This method provides a way to set the absolute size of a layer as opposed to the relative sizing offered by the resizeBy() method.

Although the size changes, the top left corner will remain pinned to its current location growing or shrinking the layer to the right and bottom of its extent.

Warnings:

See also:Layer.resizeBy()