pub fn prevent_shrinking(ui: &mut Ui)
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.
egui::Ui