Recent Changes - Search:

Administrators

Developers

Articles

Cookbook

edit

width Property

Gets or sets the widget's width. For the new width to be applied, you need to redraw the widget by calling its "redraw" method.

Syntax

QuiX XML
<qx:rect xmlns:qx="http://www.innoscript.org/quix" width="120">
</qx:rect>
JavaScriptwidget.width = 120;

Possible values

The width property can be of the following types:

lengthInteger that specifies the widget's width in pixels.
percentageAn integer followed by the "%" sign. The value is a percentage of the width of the parent widget.
calculatedA string expression that once evaluated, returns the widget's width.
For instance, a value of "this.parent.getWidth()" is the same as "100%".

Page last modified on June 08, 2006, at 03:31 PM