From ca4254102084e592b8c6a6e9ab14f0c7b7cc81e4 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 9 Aug 2019 22:01:29 +0200 Subject: Tweak the size of the multiline text edit popup dialog This caps its size on large displays. This in turn prevents lines from becoming very long, which could hamper text readability. --- editor/editor_properties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 3300228921..20ba07c102 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -116,7 +116,7 @@ void EditorPropertyMultilineText::_open_big_text() { add_child(big_text_dialog); } - big_text_dialog->popup_centered_ratio(); + big_text_dialog->popup_centered_clamped(Size2(1000, 900) * EDSCALE, 0.8); big_text->set_text(text->get_text()); big_text->grab_focus(); } -- cgit v1.2.3