Max Width
Introduction
The Max Width variable sets the maximum width in pixels. The value is applied after all other layout so it can be used to overwrite automatically-assigned width.
By default this value is <NULL> which means there is no Max Width.

Max WidthIf Max Width is assigned (not <NULL>), then the effective width cannot be larger than the Max Width value. The following animation shows that width is limited to a Max Width of 100.

Max Width set to 100 limits the ColoredRectangle's widthNotice that the Width variable can still be set to a value larger than Max Width, but it does not apply visually.
Max Width can also be used if Width Units is set to values other than Absolute. For example, Max Width can be used to limit the width of a ColoredRectangle when Width Units is Relative to Parent.

Max Width of 100Max Width and Relative to Children
Note that Max Width can prevent a container from growing according to its children. For more information, see the Relative to Children Width Units page.
A container with a Left to Right Stack grows to its Max Width when its children need more space. The child that crosses the max extends past the container's right edge. If the container also has Wraps Children checked, it stops at the right edge of the last child that fits, since the next child moves to a new row. For more information see the Children Layout page.
Last updated
Was this helpful?

