Skip to content

Commit 750dae5

Browse files
authored
Fix resizing loading screen (#11381)
1 parent be0afb1 commit 750dae5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/viewer/re_ui/src/ui_ext.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,9 @@ pub trait UiExt {
869869
}
870870

871871
fn loading_screen_ui<R>(&mut self, add_contents: impl FnOnce(&mut egui::Ui) -> R) -> R {
872-
self.ui_mut().center("loading spinner", |ui| {
872+
let ui = self.ui_mut();
873+
ui.set_min_height(ui.available_height());
874+
ui.center("loading spinner", |ui| {
873875
ui.vertical_centered(|ui| {
874876
ui.spinner();
875877
add_contents(ui)

0 commit comments

Comments
 (0)