position

Typeproperty
Dictionarylibrary.responsivelayout
LibraryResponsiveLayout
Syntax
get the position[propertyName] of object
set the position[propertyName] of object to propertyValue
Associationscom.livecode.library.responsivelayout, group, button, field, scrollbar, image, graphic, player, widget
Summary

Sets how the object is positioned within its owner.

Example
set the position["type"] of group "header" to "fixed"
set the position["left"] of group "header" to 0
set the position["top"] of group "header" to 0
set the position["right"] of group "header" to 0
set the position["type"] of image 1 to "center"
set the position["type"] of widget 1 to "align"
set the position["alignment"] of widget 1 to "centerBottom"
Description

Use the position property to position a control relative to its owner. This property has an array format, with the type property defining the rest of the properties.

There are several types of positions, which you can get with the positionNames function. Depending on the type you choose, there will be the properties that you must pass.

When you use the left, top, right, and bottom subproperties on the position. These refer to the distance that exists from that side of the parent to that side of the object.