Sets the size of the control.
[JavaScript]
Control.setSize(
width, height)
Parameters
-
width
- The new width in pixel.
-
height
- The new height in pixel.
Remarks
In standards-compliant mode, this method sets the control's root element's content box width and height. This is different from getOffsetWidth and getOffsetHeight, which return the width and height of the outter box respectively.
See Also
Control Object