From f11f9bd1fd26f0fb23d0e378ba74c4143a3e8d96 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Tue, 24 Aug 2021 16:00:39 +0200 Subject: [PATCH] Bug fix: fix horizontal layouts inside infinitely wide Ui:s. --- egui/src/ui.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );