StackLayout

extends Layout

The StackLayout class represents a layout that positions objects by stacking them. To create a StackLayout object and apply it to a collection, use the layout function:

let sl = atlas.layout("stack", {orientation: "vertical"});
collection.layout = sl;

Properties

propertyexplanationtypedefault value
type the type of the layoutString“stack”
group the group that uses this layoutGroup
baselinethe baseline of stackingString
orientationthe orientation of stackingStringundefined
horzCellAlignmentthe horizontal alignment of item in each cellString“left”
vertCellAlignmentthe vertical alignment of item in each cellString“bottom”

Methods inherited from Layout

methodexplanationreturn type
clone() returns a copy of this layoutvoid
run() apply this layoutvoid