Expand description
The layout algorithms themselves
Functionsยง
- Computes the layout of
PartialLayoutTree
according to the block layout algorithm - Updates the stored layout of the provided
node
and its children - Computes the layout of
PartialLayoutTree
according to the flexbox algorithm - Grid layout algorithm This consists of a few phases:
- Creates a layout for this node and its children, recursively. Each hidden node has zero size and is placed at the origin
- Updates the stored layout of the provided
node
and its children - Compute the size of a leaf node (node with no children)
- Rounds the calculated
Layout
to exact pixel values