Most elements in the Form designer offer the Layout property category. It is used to define the size of an element, the alignment of its content, and the behavior when content overflows. Container elements additionally control the arrangement of their child elements.
TIP
The layout of a form is created either manually with these settings or automatically with the Pathfinder function "Optimize Layout". See Optimize form layouts with Pathfinder.

NOTE:
Which fields the "Layout" category contains depends on the element type. Depending on the element, not all or no setting options are available. Container elements offer additional fields for arranging their child elements.
A CSS class is not assigned in the "Layout" category but in the "Style" property category, using the "Style & Effects" button. See Styles and effects (forms).
Settings
Setting | Description |
|---|---|
Orientation | Container elements only. Defines whether the child elements are arranged side by side ("horizontal") or below each other ("vertical"). |
Alignment of elements | Container elements only. Defines the alignment of the child elements within the container. The upper row of buttons controls the vertical alignment, the lower row the horizontal alignment. |
Elements can wrap | Container elements only. If the option is active, child elements wrap to the next row or column as soon as there is not enough space in the container. Otherwise, they remain in one row or column. |
No spacing | Container elements only. If the option is active, the spacing between the child elements is removed. |
Overflowing content | Defines how a container behaves when its content is larger than its defined size. The available options are "Scroll", "Visible", and "Hidden". See /v1/docs/en/fre-layout-properties#content-overflow. |
Reserve space for hint | Reserves a fixed space below the content for a possible hint text. The height of the form therefore does not change when hint texts are shown or hidden. If the option is neither active nor inactive, the setting is inherited from the parent element. NOTE: Reserving space for hint texts is recommended. |
Text alignment | Defines the alignment of the text within the element. The available options are "Default", "left", "right", and "centered". |
Width, Height | Define the size of the element. Width and height are defined separately. The same four modes are available for both directions:
An element with a percentage size is at most as large as the remaining available space within its parent element. The remaining space results from the size of the parent element minus the content with a fixed or automatic size. Elements with a percentage size therefore share the space on the same level. See Percentage sizes. |
Min. width, Min. height | Limit the size of the element downwards and prevent the content from being pushed too far together. Default: "none". |
Max. width, Max. height | Limit the size of the element upwards and prevent the content from being pulled too far apart. Default: "none". |
Percentage sizes
Examples of percentage sizes
Example 1:
A column layout container with a defined width of 300 pixels has two child button elements with a respective width of 100 %.

Example 2:
This is the same scenario as in example 1, but the first button has a fixed width of 50 pixels. Button 2 takes up the remaining space.

Nesting of percentage sizes in containers with automatic size
IMPORTANT:
Percentage values depend on the size of the parent element, whereas an automatic value is based on the size of the content. The combination of percentage sizes in the content and automatic sizes in the parent element therefore leads to undefined behavior.
The reason for this is shown by the following example: Container A (height: auto) contains element B (height: 100 %). When displaying, the size of A is determined first: Height A = Height B (because Height A is "auto"). Since the size of A is based on the size of its contents, the size of B must be determined first: Height B = Height A (because Height B is "100 %").
The height of A would then have to be determined again, which leads to a chicken-and-egg problem. The sizes of both elements are therefore not defined. In some cases, elements are not displayed at all or are displayed very small. Likewise, elements can become millions of pixels in size (for example, table-based components).
For compatibility with older Lobster Data Platform versions, some container elements take over the percentage size of their directly subordinate elements, which can sometimes have confusing effects. As of version 4.2.0, this behavior is automatically disabled for newly inserted containers and can be enabled or disabled with the "Inherit percent size from children" layout option.
Layout structure
For creating a neatly divided form, the Form designer offers various layout elements such as tabs, expandable containers, column and row layouts. The basic division of the form as well as the orientation of the visual elements is mainly done by the so-called column and row layout containers, which are described in more detail below.
Row layout
A row layout container aligns its child elements below each other (in rows).

Column layout
A column layout container aligns its child elements side by side (in columns).

Example layout by nesting row and column layouts
The layout below shows the layout of a classic application, which is divided into a header, body and footer.
Element hierarchy | Layout with size settings |
|---|---|
|
|
While the header and footer each have fixed heights, the body area (BODY) takes up the remaining space in height. If the space for the form becomes too low, the minimum height of the body area ensures a height of at least 400 pixels. This prevents the content from being pushed too far together. The same applies to the page area (SIDE) and the content (CONTENT), which define minimum widths of 200 and 300 pixels respectively.
Overflowing content
Designing a flexible layout also includes defining how containers behave when their contents overflow. We speak of an overflow when the content of a container becomes larger than its defined size.
There are three different possibilities of how a container deals with overflowing content. These are selected in the "Layout" property category, using the "Overflowing content" field.

Scroll: The overflowing content can be scrolled. In desktop versions of the browsers, scrollbars are displayed automatically.

Visible: The overflowing content remains visible, but overlaps the following elements (see the button below).

Hidden: The overflowing content is cut off.

NOTE: A container can overflow only if it has a defined size (not "auto").

