Skip to main content

keep_title

Function keep_title 

Source
pub fn keep_title(
    asked: &[Asked],
    heights: &[f32],
    empty: f32,
    section: usize,
) -> Kept
👎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

What folding or opening the section section keeps, from the heights shown and the empty room under them, so that its title does not move.

The open sections above keep their shown height, as if set by hand. Those below move: folding, they take the room it frees; opening, they give it its room, and the empty room gives only when they are at their least (fit). With no open section below, the room stays empty when folding; opening takes it back, up to the section’s own height when it has one.