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.
QuiX XML | <qx:rect xmlns:qx="http://www.innoscript.org/quix" width="120"> </qx:rect> |
---|---|
JavaScript | widget.width = 120; |
The width property can be of the following types:
length | Integer that specifies the widget's width in pixels. |
percentage | An integer followed by the "%" sign. The value is a percentage of the width of the parent widget. |
calculated | A string expression that once evaluated, returns the widget's width. For instance, a value of "this.parent.getWidth()" is the same as "100%". |