summaryrefslogtreecommitdiffstats
path: root/editor/plugins/text_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-11-22 16:22:57 +0100
committerGitHub <noreply@github.com>2021-11-22 16:22:57 +0100
commit76aa1d0a433441e9bd863e1f489e9905c545f630 (patch)
treea5b299f1bd5bbeee6bf717ae5a02f28977f04af5 /editor/plugins/text_editor.cpp
parent8daf0cc49c4bab8dd039ced214e527b21708661e (diff)
parenteabf8f5edf6dc3346bd6a6e771e382f1a20a5c29 (diff)
downloadredot-engine-76aa1d0a433441e9bd863e1f489e9905c545f630.tar.gz
Merge pull request #55151 from Chaosus/control_reset_size
Diffstat (limited to 'editor/plugins/text_editor.cpp')
-rw-r--r--editor/plugins/text_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/text_editor.cpp b/editor/plugins/text_editor.cpp
index ebfe6c9ee3..e252792c43 100644
--- a/editor/plugins/text_editor.cpp
+++ b/editor/plugins/text_editor.cpp
@@ -508,7 +508,7 @@ void TextEditor::_make_context_menu(bool p_selection, bool p_can_fold, bool p_is
context_menu->set_item_disabled(context_menu->get_item_index(EDIT_REDO), !tx->has_redo());
context_menu->set_position(get_global_transform().xform(p_position));
- context_menu->set_size(Vector2(1, 1));
+ context_menu->reset_size();
context_menu->popup();
}