Dimension

Description

Defines the size of a window or UI element. Contains a 2-element array.

Specifies the height and width of an element in pixels. A Dimension object is created when you set an element?s size property. You can set the property using a JavaScript object with named properties {width: wd, height: ht}, or an array with 2 values in the order [wd, ht].

Properties

height readonly The height in pixels.
length readonly The array length.
width readonly The width in pixels.