Explorar el Código

Fixes tab height in Batch Rename dialog

Haoyu Qiu hace 5 años
padre
commit
f03facc474
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      editor/rename_dialog.cpp

+ 2 - 1
editor/rename_dialog.cpp

@@ -32,6 +32,7 @@
 
 #include "core/print_string.h"
 #include "editor_node.h"
+#include "editor_scale.h"
 #include "editor_settings.h"
 #include "editor_themes.h"
 #include "modules/regex/regex.h"
@@ -106,7 +107,7 @@ RenameDialog::RenameDialog(SceneTreeEditor *p_scene_tree_editor, UndoRedo *p_und
 
 	// -- Feature Tabs
 
-	const int feature_min_height = 160;
+	const int feature_min_height = 160 * EDSCALE;
 
 	Ref<Theme> collapse_theme = create_editor_theme();
 	collapse_theme->set_icon("checked", "CheckBox", collapse_theme->get_icon("GuiTreeArrowDown", "EditorIcons"));