From 8e4a63ce54d4dbdf1cbb2d929b1b2faa9c84116f Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sun, 16 Nov 2025 19:29:38 +0100 Subject: [PATCH] Make top/bottom panels un-resizable by default --- crates/egui/src/containers/panel.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/egui/src/containers/panel.rs b/crates/egui/src/containers/panel.rs index aef67e514..ec7e268d4 100644 --- a/crates/egui/src/containers/panel.rs +++ b/crates/egui/src/containers/panel.rs @@ -332,15 +332,19 @@ impl Panel { /// Create a top panel. /// /// The id should be globally unique, e.g. `Id::new("my_top_panel")`. + /// + /// By default this is NOT resizable. pub fn top(id: impl Into) -> Self { - Self::new(PanelSide::TOP, id) + Self::new(PanelSide::TOP, id).resizable(false) } /// Create a bottom panel. /// /// The id should be globally unique, e.g. `Id::new("my_bottom_panel")`. + /// + /// By default this is NOT resizable. pub fn bottom(id: impl Into) -> Self { - Self::new(PanelSide::BOTTOM, id) + Self::new(PanelSide::BOTTOM, id).resizable(false) } /// Create a panel.