|
|
|
|
FlexShrink (Property) In french: FlexShrink
The FlexShrink property gets and sets the shrink factor of an item in a line of a Flexbox control. Depending on the direction, if the Flexbox control is reduced, items will shrink to adapt to the available horizontal or vertical space.
FLEX_MyFlexbox.BTN_MyButton.FlexGrow = 2
FLEX_MyFlexbox.BTN_MyButton.FlexAlignSelf = fbasStretch
FLEX_MyFlexbox.BTN_MyButton.FlexShrink = 2
Syntax
Getting the shrink factor of an item Hide the details
<Result> = <Control used>.FlexShrink
<Result>: Integer - 0, no shrinking.
- 1, default shrink value. Depending on the direction of the Flexbox control, items will shrink evenly to adapt to the available horizontal or vertical space.
- Other value: items will shrink proportionally using this value to adapt to the available horizontal or vertical space.
<Control used>: Control name Name of the item within the Flexbox control.
Setting the shrink factor of an item Hide the details
<Control used>.FlexShrink = <Reduction factor>
<Control used>: Control name Name of the item within the Flexbox control. <Reduction factor>: Integer New shrink factor: - 0, no shrinking.
- 1, default shrink value. Depending on the direction of the Flexbox control, items will shrink evenly to adapt to the available horizontal or vertical space.
- Other value: items will shrink proportionally using this value to adapt to the available horizontal or vertical space.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|