Skip to main content

pin_plan

Function pin_plan 

Source
pub fn pin_plan(
    asked: &[Asked],
    room: f32,
    empty: f32,
    plan: &[f32],
) -> Vec<Option<f32>>
👎Deprecated since 0.5.0: moved to egui_stack::sections::plan, re-exported as egui_pop_core::sections::plan; this copy goes in the next release
Expand description

The heights to keep by hand, section by section, so that fit shows plan in room, with empty kept under the last section.

A section set by hand takes its height from the plan, which aligns it on what is shown. One sized by the list stays so as long as fit gives it the plan’s height: a section the drag did not touch gets a height of its own only if the list would otherwise move it. The last open section and folded ones keep what they had.