Fixed layout versus flow layout
Choose the right layout model. Layout in the DocStudio designer user guide.
DocStudio has two ways to position elements. Choosing the right one saves a lot of effort.
Flow layout
Elements follow each other. A stack arranges them in a column, a row in a line, a grid in columns. Text wraps, a table grows with its rows and the document continues on the next page when it is full.
Choose flow when the amount of content depends on data: invoices, reports, lists, letters.
Fixed layout
A fixed region is a box of a given size. Inside it every element has a frame: x, y, width, height, optional rotation and stacking order, all in millimetres from the top-left corner. Nothing moves when other things change.
Choose fixed when position is part of the design: certificates, labels, ID cards, forms printed on pre-printed paper.
Comparison
| Question | Flow | Fixed |
|---|---|---|
| Can content grow with data? | Yes | No |
| Can I place something at exactly 20 mm from the left? | No | Yes |
| Are there resize handles? | No | Yes |
| Does it split over pages? | Yes | No, the box stays whole |
| Can elements overlap? | No | Yes, ordered by z |
You can mix them
- A fixed region inside a flow layout, for example a stamp in an invoice.
- Flow containers inside a fixed region, for example a stack of text inside a certificate frame.
Common mistakes
- Using a fixed region for a long list: it does not grow or split.
- Looking for handles on a flow element: use width, height and the layout settings instead.
- Frames on elements outside a fixed region: they are ignored.
Related: Fixed region, Stack and row, Grid.