Function taffy::round_layout

source ยท
pub fn round_layout(tree: &mut impl LayoutTree, node_id: NodeId)
Expand description

Rounds the calculated Layout to exact pixel values

In order to ensure that no gaps in the layout are introduced we:

In order to prevent innacuracies caused by rounding already-rounded values, we read from unrounded_layout and write to final_layout.