size

Specifies the width and height of a component in terms of pixels. Fractional values for width and height are rounded down to the next lowest integer. This property does not take effect in the design view of Visual Composer and does not apply to components within a Selection Container.

Type

java.awt.Dimension

java.awt.Dimension(width,height)

Example

// Table with 700 pixel width, 400 pixel height
TableView1.size = java.awt.Dimension(700,400)

// Chart with 200 pixel width, 60 pixel height
Chart1.size = java.awt.Dimension(60,200)

Either syntax below can be used in component script:

size               // unqualified
Component1.size    // qualified

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