From 3a382b766b0795e2e61171c8058f39380cc2f37f Mon Sep 17 00:00:00 2001 From: Tim Blackbird Date: Fri, 18 Jul 2025 01:01:55 +0200 Subject: [PATCH] Fix panel layout exploding when panels overflow --- crates/bevy_pane_layout/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/bevy_pane_layout/src/lib.rs b/crates/bevy_pane_layout/src/lib.rs index fbb04a09..54db3f2d 100644 --- a/crates/bevy_pane_layout/src/lib.rs +++ b/crates/bevy_pane_layout/src/lib.rs @@ -102,7 +102,9 @@ fn setup( padding: UiRect::all(Val::Px(1.)), flex_grow: 1., width: Val::Percent(100.), - + height: Val::Percent(100.), + // Prevent children from expanding the height of this node. + min_height: Val::Px(0.), ..default() }, theme.general.background_color,