scaledSize

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 size of a component in terms of pixels. This property returns null within the design view of Visual Composer and whenever ‘Scale to Screen’ is not enabled.

Type

java.awt.Dimension object: java.awt.Dimension(width,height)

Example

alert(Chart1.scaledSize)
// returns java.awt.Dimension[width=200,height=40]

Either syntax below can be used in component script:

scaledSize               // unqualified
Component1.scaledSize    // qualified

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