re_viewer::external::re_ui::modal

Function prevent_shrinking

Source
pub fn prevent_shrinking(ui: &mut Ui)
Expand description

Prevent a UI from shrinking if the content size changes.

Should be called at the beginning of the [egui::Ui], before any other content is added. Will reset if the screen size changes.