Size Fitter#

class SizeFitter#

Sizes a panel to fit what it contains, rather than the other way round. See Panel.size_fitter.

horizontal_fit#

How the width of the panel is chosen.

Attribute:

Can be read or written

Return type:

ContentSizeFit

vertical_fit#

How the height of the panel is chosen.

Attribute:

Can be read or written

Return type:

ContentSizeFit

class ContentSizeFit#

How a size fitter sizes a panel along one direction.

unconstrained#

Leave the size alone.

min_size#

Use the smallest size the contents will fit in.

preferred_size#

Use the size the contents ask for.