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

NameTypeDefaultDescription
Direction"Down" | "Right"
GapUDimThe space between children: scale is a fraction of the stack's own height, offset in pixels.
PaddingUDim
Align"Start" | "Center" | "End"
ContentSizeVector2read-onlyFeeds a ScrollingFrame's CanvasSize.
From Frame 10
From UIObject 19
From ScreenItem 2
From ShotInstance 33