scaledPosition

Property is read-only. It cannot be set in script.

For cases when the ‘Scale to Screen’ option (see Dashboard Options) is enabled, returns the final rendered position of the top-left corner of a component in terms of pixels. The top-left corner of the Dashboard represents pixel location (0,0). This property returns null within the design view of Visual Composer and whenever ‘Scale to Screen’ is not enabled.

Type

java.awt.Point object: java.awt.Point(horizontal,vertical)

Example

alert(Chart1.scaledPosition)
// returns java.awt.Point[x=200,y=25]

This indicates that the top-left corner of Chart1 is at 200 pixels right, 25 pixels down.

Either syntax below can be used in component script:

scaledPosition               // unqualified
Component1.scaledPosition    // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.