Skip to content

Titanium.UI.Dimension

A simple object consisting of the position and size measurements. Effectively combines <Size> and <Point> but ensures numeric x/y values.

When a dimension is returned by the rect property, x represents the view's left position, and y represents the view's top position.

The size property returns a dimension object with x and y both set to 0.

Extends: Size · Since: 2.0.0

Properties #

height#

extended

Type: Number

The height measurement.

width#

extended

Type: Number

The width measurement.

x#

Type: Number

The x-axis coordinate of the position. When returned by Titanium.UI.View.rect the position is relative to it's parent.

y#

Type: Number

The y-axis coordinate of the position. When returned by Titanium.UI.View.rect the position is relative to it's parent.

Titanium SDK Documentation