diff --git a/editor/gui/editor_bottom_panel.cpp b/editor/gui/editor_bottom_panel.cpp index 65d1a1a891d..9baeefe8cb8 100644 --- a/editor/gui/editor_bottom_panel.cpp +++ b/editor/gui/editor_bottom_panel.cpp @@ -128,6 +128,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);