diff --git a/egui/src/ui.rs b/egui/src/ui.rs index 25da2b52..048534f0 100644 --- a/egui/src/ui.rs +++ b/egui/src/ui.rs @@ -1511,7 +1511,7 @@ impl Ui { add_contents: Box R + 'c>, ) -> InnerResponse { let initial_size = vec2( - self.available_size_before_wrap_finite().x, + self.available_size_before_wrap().x, self.spacing().interact_size.y, // Assume there will be something interactive on the horizontal layout );