Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Layout > API/Runtime/Slate/Widgets/Layout/SScrollBox > API/Runtime/Slate/Widgets/Layout/SScrollBox/FSlot
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SScrollBox.h |
| Include | #include "Widgets/Layout/SScrollBox.h" |
void SetSizeToStretchContent
(
TAttribute < float > InStretchCoefficient,
TAttribute < float > InShrinkStretchCoefficient
)
Remarks
The widget's content size is adjusted proportionally to fit the available space. The slots size starts at DesiredSize, and a slot with coefficient of 2 will get adjusted twice as much as slot with coefficient 1 to fit the available space.
Parameters
| Name | Description |
|---|---|
| InStretchCoefficient | Stretch coefficient for this slot. |
| InShrinkStretchCoefficient | If specified, this stretch coefficient is used when the slots is shrinking below desired size. Otherwise InStretchCoefficient is used for both shrink and grow. |