Recent Changes - Search:

Administrators

Developers

Articles

Cookbook

edit

top Property

Developers.QuiXtop History

Hide 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>
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.
Page last modified on June 08, 2006, at 03:47 PM