Stack and row
Arrange elements in a column or a line. Layout in the DocStudio designer user guide.
Stack
A stack places its children in a column, one under the other.
| Setting | Values |
|---|---|
| gap | Space between children in millimetres |
| align | start, center, end or stretch: how children line up across the stack |
Row
A row places its children side by side.
| Setting | Values |
|---|---|
| gap | Space between children in millimetres |
| align | start, center, end or stretch: vertical alignment |
| justify | start, center, end or between: how extra width is shared |
Use them
- Click Stack in the toolbox. It is inserted at the end of the body.
- Select the stack and click Text twice. The texts are inserted inside it.
- Set gap to 4 for breathing room.
- Select the stack and click Row, then insert two texts into the row.
- Set the row's justify to
betweento push one text to each side.
Wrap and unwrap
Select an element and choose Wrap in stack in the inspector to put it into a new stack. Select a container and choose Unwrap to remove the container and keep its children.
Tips
- Use a row with
justify: betweenfor a label on the left and a value on the right. - Use a stack with a gap instead of empty elements for spacing.
Limits
Children of a stack or row are not positioned by coordinates. Containers do not wrap items onto a second line: use a grid for that.