Skip to main content

resolve_subtree

Function resolve_subtree 

Source
pub fn resolve_subtree(
    graph: &SceneGraph,
    parent_idx: NodeIndex,
    bounds: &mut HashMap<NodeIndex, ResolvedBounds>,
    viewport: Viewport,
)
Expand description

Re-resolve only the children of parent_idx, using its current bounds.

This is a lightweight version of resolve_layout scoped to one subtree. Used by ResizeNode to re-flow column/row/grid children and re-center text during drag, without re-resolving the entire graph.