Sets the pixel width of the control.
[JavaScript]
Control.setWidth(
width)
Parameters
-
width
- The new width in pixel.
Remarks
In standards-compliant mode, this method sets the control's root element's content box width, which is the distance between the left and right edge of the inner box. On the other hand, getOffsetWidth returns the width of the outter box, which can be a greater value.
See Also
Control Object