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

  1. Click Stack in the toolbox. It is inserted at the end of the body.
  2. Select the stack and click Text twice. The texts are inserted inside it.
  3. Set gap to 4 for breathing room.
  4. Select the stack and click Row, then insert two texts into the row.
  5. Set the row's justify to between to 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: between for 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.