Skip to content

UI.View.useGPUForPositioning

kerrishotts edited this page Apr 1, 2013 · 1 revision

(part of UI.View)

Type: boolean

Default: false

Determines whether or not to use the GPU for positioning the elements (rather than using the top and left styles). Contingent upon useGPU being true; otherwise this value does nothing.

Changing this value will result in a frameDidChange notification since calcElement needs to be called in order to recalculate the element's positioning styles.

Usage

var aView = new UI.View();
aView.useGPU = true;
aView.useGPUForPositioning = true;

Version

0.3 Introduced; Docs Valid.

Clone this wiki locally