Quellcode durchsuchen

Fixes Theme Editor minimum height on HiDPI monitor

* Applies `EDSCALE` to the minimum size
Haoyu Qiu vor 5 Jahren
Ursprung
Commit
7f18560f3c
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      editor/plugins/theme_editor_plugin.cpp

+ 1 - 1
editor/plugins/theme_editor_plugin.cpp

@@ -908,7 +908,7 @@ ThemeEditorPlugin::ThemeEditorPlugin(EditorNode *p_node) {
 
 	editor = p_node;
 	theme_editor = memnew(ThemeEditor);
-	theme_editor->set_custom_minimum_size(Size2(0, 200));
+	theme_editor->set_custom_minimum_size(Size2(0, 200) * EDSCALE);
 
 	button = editor->add_bottom_panel_item(TTR("Theme"), theme_editor);
 	button->hide();