Skip to content
Titanium SDK
Version13.4.0

You are reading 13.4.0. See this page in 13.4.1.

Dimension

pseudoAndroidiPhoneiPadmacOSsince 2.0.0

Extends Size

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.

Properties 4

height

Number

Inherited from Size

The height measurement.

width

Number

Inherited from Size

The width measurement.

x

Number

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

y

Number

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