StackFit
Inherits: Enum
How to size the non-positioned children of a Stack.
Properties
-
EXPAND–The constraints passed to the stack from its parent are tightened to the
-
LOOSE–The constraints passed to the stack from its parent are loosened.
-
PASS_THROUGH–The constraints passed to the stack from its parent are passed unmodified
Properties#
EXPAND = 'expand'
class-attribute
instance-attribute
#
The constraints passed to the stack from its parent are tightened to the biggest size allowed.
For example, if the Stack has loose constraints with a width in the range
10 to 100 and a height in the range 0 to 600, then the non-positioned
children of the stack would all be sized as 100 pixels wide and 600 high.
LOOSE = 'loose'
class-attribute
instance-attribute
#
The constraints passed to the stack from its parent are loosened.
For example, if the stack has constraints that force it to 350x600, then
this would allow the non-positioned children of the stack to have any
width from zero to 350 and any height from zero to 600.