summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2019-12-26 15:49:48 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2019-12-26 15:51:23 +0800
commit7f18560f3cc58c042309f0bc386285e2a85f1ce6 (patch)
treec2a28b4bb98df6b46b65cd64fdf2ace2bc5f9781
parent318c69351624f7794c51b5385d252af397c0404a (diff)
downloadredot-engine-7f18560f3cc58c042309f0bc386285e2a85f1ce6.tar.gz
Fixes Theme Editor minimum height on HiDPI monitor
* Applies `EDSCALE` to the minimum size
-rw-r--r--editor/plugins/theme_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/theme_editor_plugin.cpp b/editor/plugins/theme_editor_plugin.cpp
index e1aa83e9ab..16d5a43e20 100644
--- a/editor/plugins/theme_editor_plugin.cpp
+++ b/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();