Godot Engine – Multi-platform 2D and 3D game engine
Fix `EditorToolbarGroup` from being squished at higher editor scales
Jayden Sipe6046fc56fff2
diff --git a/editor/gui/editor_toolbar_group.cpp b/editor/gui/editor_toolbar_group.cppindex 3dc5cf85f66..d7f3ff6ab4e 100644--- a/editor/gui/editor_toolbar_group.cpp+++ b/editor/gui/editor_toolbar_group.cpp@@ -57,7 +57,7 @@ void EditorToolbarGroup::_notification(int p_what) {// thus adding 18 will give us the minimum of 32// which allows increased font sizes to scale the toolbar.const int font_size = get_theme_default_font_size();- const int max_size = MAX(32, font_size + 18);+ const int max_size = MAX(32 * EDSCALE, font_size + 18 * EDSCALE);set_custom_minimum_size(Size2(-1, max_size));set_custom_maximum_size(Size2(-1, max_size));} break;