mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 05:14:24 +00:00
A child placed on an unwrapped row's line reports how far below its top the centre of its first line lies: half a control's height, a row body's line, or a container's first child's first line (its header's, else its body's), which its measuring run records. A child whose first line lies at half its height is one line (a control, a row of one-line children, a field with its label beside its control) and sits with its centre on the row's line, so a side-labelled field holding smaller controls centres them. A child of more than one line (a column, a field with its label above or a help line below) sits at the row's top, as does one with no line of its own (a collection whose rows run along Y), so columns beside each other share their tops. The row's line is the lowest centre of its one-line children, or of the line it shares with its container's inline regions; the row records the line's centre and its height, and takes that height in its measuring run. Replaces the line/block split, where every container sat at the row's top.