BasicBlockControl.setWidth

Sets the panel width.

Supported values:
ValueDescription
A specific valueAs per the CSS width property e.g. 300px
ChildThe minimum value: this results in the Panel Control being just as wide as it needs to be to accommodate its children.
nullThe maximum value: the width is taken from the parent container control. This width will then include the Panel Control plus any configured padding, border or margins.

The width setting will be ignored if the parent container layout specifies a horizontal cell alignment of fill (this applies to Horizontal Box, Vertical Box and Column layouts). This is equivalent to specifying maximum above.

Warning: when a specific value is set, any padding, border or margins will be in addition to the specified value and can cause the Panel Control to "break out" of its parent space. In particular, try and avoid specifying a width of 100%; use maximum (null) instead.

Examples:

 controls.PANEL1.width = "300px";
 controls.PANEL1.width = "50%";
 controls.PANEL1.setWidth("Child");
 controls.PANEL1.setWidth(null);
 

Parameters

java.lang.String  width,