From d9280fbf88047b73e87b7db15d2dc60bf6d9a3a3 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Fri, 12 Dec 2025 13:12:05 -0300 Subject: [PATCH] Fix buttons overflowing in the bottom panel --- editor/gui/editor_bottom_panel.cpp | 6 ++++++ editor/gui/editor_bottom_panel.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/editor/gui/editor_bottom_panel.cpp b/editor/gui/editor_bottom_panel.cpp index db2ea18a660..5b1597c19d6 100644 --- a/editor/gui/editor_bottom_panel.cpp +++ b/editor/gui/editor_bottom_panel.cpp @@ -127,6 +127,12 @@ void EditorBottomPanel::_repaint() { } } +Size2 EditorBottomPanel::get_minimum_size() const { + Size2 min_size = TabContainer::get_minimum_size(); + min_size.x += bottom_hbox->get_combined_minimum_size().x; + return min_size; +} + void EditorBottomPanel::save_layout_to_config(Ref p_config_file, const String &p_section) const { Dictionary offsets; for (const KeyValue &E : dock_offsets) { diff --git a/editor/gui/editor_bottom_panel.h b/editor/gui/editor_bottom_panel.h index 238ed5e6c37..1fcaed4d48d 100644 --- a/editor/gui/editor_bottom_panel.h +++ b/editor/gui/editor_bottom_panel.h @@ -67,6 +67,8 @@ protected: void _notification(int p_what); public: + virtual Size2 get_minimum_size() const override; + void save_layout_to_config(Ref p_config_file, const String &p_section) const; void load_layout_from_config(Ref p_config_file, const String &p_section);