From Porcupine wiki

Developers: 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>
JavaScriptwidget.top = "10%";

Possible values

The top property can be of the following types:

lengthInteger that specifies the widget's top offset in in pixels.
percentageAn integer followed by the "%" sign. The offset is calculated as a percentage of the height of the parent widget.
calculatedA 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.
centerIf the top property is set to "center" the widget becomes horizontally centered inside its parent's client area.
Retrieved from http://wiki.innoscript.org/pmwiki.php/Developers/QuiXtop
Page last modified on June 08, 2006, at 03:47 PM