From 5a481bd3409f2a03fb5d5bda1ee6ff52c2e126f4 Mon Sep 17 00:00:00 2001 From: derammo <817160+derammo@users.noreply.github.com> Date: Fri, 13 May 2022 21:11:41 -0400 Subject: display of large help text in visual script implemented vertical scroller for help text in popup disabled broken positioning code --- modules/visual_script/editor/visual_script_editor.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'modules/visual_script/editor/visual_script_editor.cpp') diff --git a/modules/visual_script/editor/visual_script_editor.cpp b/modules/visual_script/editor/visual_script_editor.cpp index 569bcad780..ffc112df65 100644 --- a/modules/visual_script/editor/visual_script_editor.cpp +++ b/modules/visual_script/editor/visual_script_editor.cpp @@ -1959,15 +1959,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 &p_event) { -- cgit v1.2.3