Stack
Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.
Up and coming
Line children up in a row or a column with a gap, and they slide into place when one is added, removed or reordered.
Children are placed by their LayoutOrder, then tree order, and their own Position is ignored. Gap scales with the stack's height, and ContentSize feeds a ScrollingFrame's CanvasSize. A Stack is a convenience for long lists that change often: since positions ease anyway, a short layout written from Window.SizeChanged slides too.
Made with Instance.new("Stack") or Clone().
Properties
| Name | Type | Default | Description |
|---|---|---|---|
| Direction | "Down" | "Right" | ||
| Gap | UDim | The space between children: scale is a fraction of the stack's own height, offset in pixels. | |
| Padding | UDim | ||
| Align | "Start" | "Center" | "End" | ||
| ContentSize | Vector2 | read-only | Feeds a ScrollingFrame's CanvasSize. |
From Frame 10
From UIObject 19
From ScreenItem 2
From ShotInstance 33
ClassNameNameParentAncestryChangedAttributeChangedChangedChildAddedChildRemovedDestroyingAddTagClearAllChildrenCloneDestroyFindFirstAncestorFindFirstAncestorOfClassFindFirstAncestorWhichIsAFindFirstChildFindFirstChildOfClassFindFirstChildWhichIsAGetAttributeGetAttributeChangedSignalGetAttributesGetChildrenGetDescendantsGetFullNameGetPropertyChangedSignalGetTagsHasTagIsAIsAncestorOfIsDescendantOfRemoveTagSetAttribute
