Search
Control.top Property
See Also
 






Gets or sets the Y-coordinate of the location of this control.

Namespace: MindFusion.Common
File: Control.js

 Syntax

JavaScript  Copy Code

get top() {}

 Property Value

Unit. The Y-coordinate of the control's location.

 Example

The following code uses the top property to specify the location of a Window instance:

JavaScript  Copy Code
window = new ui.Window();
window.top = ui.Unit.percentage(25);
window.left = ui.Unit.percentage(25);
window.width = ui.Unit.pixel(400);
window.height = ui.Unit.pixel(300);

 See Also