Skip to main content

fit_content

Function fit_content 

pub fn fit_content(
    asked: &[Asked],
    most: &[f32],
    room: f32,
    empty: f32,
) -> (Fit, f32)
Expand description

fit_within for a stack sized by its content (Sections::fill off): the last open section keeps a height set by hand too, as every other one, past its content as well, so that a drag moves its band down into the room under it. The room the heights leave goes under the last band, in the returned room left as in Fit::empty.