Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.25 KB

screen_layout_rules_margins.adoc

File metadata and controls

49 lines (36 loc) · 1.25 KB
Margins and Spacing
Margin for screen borders

The margin attribute enables setting margins between container borders and nested components.

If margin is set to true, the margin is applied to all sides of the container.

link:../../../../../source/cookbook/screen_layout_rules_margin.xml[role=include]
screen layout rules 12

Margins can be also set for each individual side (Top, Right, Bottom, Left). The example of top and bottom margins:

<vbox margin="true,false,true,false">
Spacing between components

The spacing attribute indicates whether the space should be added between nested components in the direction of the container expansion.

screen layout rules 13
Tip

Spacing will work correctly in case some of the nested components become invisible, so you should not use margin to emulate spacing.

link:../../../../../source/cookbook/screen_layout_rules_spacing.xml[role=include]
screen layout rules 14