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 = msc.layout("stack", {orientation: "vertical"});
collection.layout = sl;

Properties

propertyexplanationtypedefault value
baselinethe baseline of stackingString
group the group that uses this layoutGroup
horzCellAlignmentthe horizontal alignment of item in each cellString“left”
orientationthe orientation of stackingStringundefined
type the type of the layoutString“stack”
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