summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2019-08-09 22:01:29 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2019-08-09 22:03:25 +0200
commitca4254102084e592b8c6a6e9ab14f0c7b7cc81e4 (patch)
treec6574239c2e258f98e178a62528bb9cfaec5eda4
parent71a6d2cd17b9b48027a6a36b4e7b8adee0eb373c (diff)
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.
-rw-r--r--editor/editor_properties.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}