1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Fixes Theme Editor minimum height on HiDPI monitor

* Applies `EDSCALE` to the minimum size
This commit is contained in:
Haoyu Qiu
2019-12-26 15:49:48 +08:00
parent 318c693516
commit 7f18560f3c

View File

@@ -908,7 +908,7 @@ ThemeEditorPlugin::ThemeEditorPlugin(EditorNode *p_node) {
editor = p_node; editor = p_node;
theme_editor = memnew(ThemeEditor); 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 = editor->add_bottom_panel_item(TTR("Theme"), theme_editor);
button->hide(); button->hide();