Reference Manual: (offline | online) Quickstart: (offline | online)

# ui.sizer

Function: ui.sizer( | maxwidth=None, maxheight=None, **properties)

This is a widget that can shrink the size allocated to the next widget added. If maxwidth or maxheight is not None, then the space allocated to the child in the appropriate direction is limited to the given amount.

Please note that this only works with child widgets that can have a limited area allocated to them (like text), and not with ones that use a fixed area (like images).

maxwidth - The maximum width of the child widget, or None to not affect width.

maxheight - The maximum height of the child widget, or None ot not affect height.

## Example

    TODO

Reference Manual: (offline | online) Quickstart: (offline | online)