Skip to main content

resolve

Function resolve 

Source
pub fn resolve(
    view: &View,
    available: Available,
) -> Result<ResolvedView, LayoutError>
Expand description

Resolves view into one rectangle sized under available.

Every node resolves its own size under the area, so a bound reshapes a box rather than cutting it. The crop below is the degenerate-case safety net: it fires only when a rectangle could not be made to fit — an area that cannot hold a frame at all — and it cuts grapheme-atomically.