diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-05-22 01:26:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-22 01:26:33 +0200 |
commit | 7b8c574401b3b3a211fd478eaa3fbb99b6dbb798 (patch) | |
tree | 4b3e8691afdfe46a94190884734ee0f45c291aed /modules/visual_script/editor/visual_script_editor.cpp | |
parent | 4ce4840fb3ee41aac3b8bb72ac6a194d9cd72ed7 (diff) | |
parent | 5a481bd3409f2a03fb5d5bda1ee6ff52c2e126f4 (diff) | |
download | redot-engine-7b8c574401b3b3a211fd478eaa3fbb99b6dbb798.tar.gz |
Merge pull request #61017 from derammo/derammo_58121
display of large help text in visual script
Diffstat (limited to 'modules/visual_script/editor/visual_script_editor.cpp')
-rw-r--r-- | modules/visual_script/editor/visual_script_editor.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/modules/visual_script/editor/visual_script_editor.cpp b/modules/visual_script/editor/visual_script_editor.cpp index 012e0229f3..642f15db86 100644 --- a/modules/visual_script/editor/visual_script_editor.cpp +++ b/modules/visual_script/editor/visual_script_editor.cpp @@ -1966,15 +1966,6 @@ void VisualScriptEditor::_generic_search(Vector2 pos, bool node_centered) { } new_connect_node_select->select_from_visual_script(script, false); // do not reset text - - // Ensure that the dialog fits inside the graph. - Size2 bounds = graph->get_global_position() + graph->get_size() - new_connect_node_select->get_size(); - pos.x = pos.x > bounds.x ? bounds.x : pos.x; - pos.y = pos.y > bounds.y ? bounds.y : pos.y; - - if (pos != Vector2()) { - new_connect_node_select->set_position(pos); - } } void VisualScriptEditor::input(const Ref<InputEvent> &p_event) { |