Size Fitter#

class UI.SizeFitter()#

Sizes a panel to fit what it contains, rather than the other way round. See UI.Panel.getSizeFitter().

SizeFitter.getHorizontalFit()#
SizeFitter.setHorizontalFit(value)#

How the width of the panel is chosen.

Property:

Can be read or written

Return type:

UI.ContentSizeFit

SizeFitter.getVerticalFit()#
SizeFitter.setVerticalFit(value)#

How the height of the panel is chosen.

Property:

Can be read or written

Return type:

UI.ContentSizeFit

class UI.ContentSizeFit()#

How a size fitter sizes a panel along one direction.

ContentSizeFit.unconstrained#

Leave the size alone.

ContentSizeFit.minSize#

Use the smallest size the contents will fit in.

ContentSizeFit.preferredSize#

Use the size the contents ask for.