From c955a16b3988c764953e7b9f42491cf21edd801b Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Fri, 15 Jan 2021 19:55:21 +0300 Subject: [PATCH] Fix invalid visual shader context menu popup size --- editor/plugins/visual_shader_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index f2eaa9c2b57..5533fcd02ba 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -2387,6 +2387,7 @@ void VisualShaderEditor::_graph_gui_input(const Ref &p_event) { menu_point = graph->get_local_mouse_position(); Point2 gpos = Input::get_singleton()->get_mouse_position(); popup_menu->set_position(gpos); + popup_menu->set_size(Size2(-1, -1)); popup_menu->popup(); } }