HLayoutView can be a parent to other views, and it automatically arranges its child views in horizontal order, expanding their height to its own bounds. Only the width of the children is relevant.
When arranging its children, HLayoutView takes the values of their 'minWidth' and 'maxWidth' properties into account. This is useful when a child's resize mode is set to 2, 5, or 8. See examples below.
HLayoutView inherits some useful formatting methods from its superclasses.
Child view height fills the HLayoutView automatically:
Stretching the layout view; Slider height fills the View automatically:
Stretching the layout view and the contents; if all the contents are elastic, the widths of the contents are perfectly divided up. In this example, the StaticText is not elastic in order to preserve its width:
Setting minWidth on contents; beware that if the layout view width is smaller than the combined width of all the contents, things might disappear when you try to handle them with the mouse:
Text flows:
Spacing: