Sets or retrieves the position of the widget relative to the left of its parent widget. For the new offset 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" left="10%">
</qx:rect>
|
JavaScript | widget.left = "10%"; |
Possible values
The left property can be of the following types:
length | Integer that specifies the widget's left offset in pixels. |
percentage | An integer followed by the "%" sign. The offset is calculated as a percentage of the width of the parent widget. |
calculated | A string expression that once evaluated, returns the widget's left offset. For instance, a value of "this.parent.getWidth()-this.getWidth(true)" makes the current widget right aligned. |
center | If the left property is set to "center" the widget becomes vertically centered inside its parent's client area. |