HEIGHT attribute

The HEIGHT attribute forces an explicit height for a form element.


  1. value is an integer that defines the height of the element.


By default, the height of an element is defined by the size of the form item tag. Use the HEIGHT attribute, to define a specific height for a form item.

Note: As a general rule, consider not specifying a unit, to default to relative characters/lines/columns, instead of specifying exact pixels or points. This is especially important for mobile devices, where the screen resolution can significantly vary depending on the smartphone or tablet model.

If you don't specify a size unit for the HEIGHT attribute, it defaults to CHARACTERS, which defines a height based on the characters size in the current font.

For sizable items like IMAGE and WEBCOMPONENT, the default height is defined by the number of lines of the form item tag in the layout, as a vertical character height. Overwrite this default by specifying the HEIGHT attribute:

IMAGE img1: image1, WIDTH = 20, HEIGHT = 12;

For TABLE/TREE containers, the default height is defined by the number of lines used in the table layout. Overwrite the default by specifying the HEIGHT = x LINES attribute:

TABLE tab1: table1, HEIGHT = 25 LINES;