pub fn solve(
view_width: f32,
view_height: f32,
content: Option<Rect>,
placement: &Placement,
) -> PlacedExpand description
Fit content into a view_width x view_height box.
A zero-sized view, an absent or zero-sized box, and Fit::None all take the
same path: no fit, origin at the view’s centre, scale 1 before the
caller’s own. That is a documented outcome rather than an error — there is
nothing to divide by and nothing to measure, and a host that laid out a
collapsed box gets its animation back the moment the box has a size.