Fix buttons overflowing in the bottom panel

This commit is contained in:
Michael Alexsander
2025-12-12 13:12:05 -03:00
parent e2a10cd46f
commit d9280fbf88
2 changed files with 8 additions and 0 deletions

View File

@@ -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<ConfigFile> p_config_file, const String &p_section) const {
Dictionary offsets;
for (const KeyValue<String, int> &E : dock_offsets) {

View File

@@ -67,6 +67,8 @@ protected:
void _notification(int p_what);
public:
virtual Size2 get_minimum_size() const override;
void save_layout_to_config(Ref<ConfigFile> p_config_file, const String &p_section) const;
void load_layout_from_config(Ref<ConfigFile> p_config_file, const String &p_section);