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
property | explanation | type | default value |
---|---|---|---|
type | the type of the layout | String | “stack” |
group | the group that uses this layout | Group | |
baseline | the baseline of stacking | String | |
orientation | the orientation of stacking | String | undefined |
horzCellAlignment | the horizontal alignment of item in each cell | String | “left” |
vertCellAlignment | the vertical alignment of item in each cell | String | “bottom” |
Methods inherited from Layout
method | explanation | return type |
---|---|---|
clone() | returns a copy of this layout | void |
run() | apply this layout | void |