Developers.QuiXtop History
Show minor edits - Show changes to markup
June 08, 2006, at 03:47 PM
by Tassos Koutsovassilis -
Added lines 1-22:
(:title top Property:)
Sets or retrieves the position of the widget relative to the top 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" top="10%">
</qx:rect>
|
JavaScript | widget.top = "10%"; |
Possible values
The top property can be of the following types:
length | Integer that specifies the widget's top offset in in pixels. |
percentage | An integer followed by the "%" sign. The offset is calculated as a percentage of the height of the parent widget. |
calculated | A string expression that once evaluated, returns the widget's top offset. For instance, a value of "this.parent.getHeight()-this.getHeight(true)" aligns the current widget on its parent's bottom line. |
center | If the top property is set to "center" the widget becomes horizontally centered inside its parent's client area. |