Merge pull request #45212 from Chaosus/vs_fix_popup_size

Fix invalid visual shader context menu popup size
This commit is contained in:
Rémi Verschelde 2021-01-15 21:37:00 +01:00 committed by GitHub
commit 2c68cb1a56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -2387,6 +2387,7 @@ void VisualShaderEditor::_graph_gui_input(const Ref<InputEvent> &p_event) {
menu_point = graph->get_local_mouse_position(); menu_point = graph->get_local_mouse_position();
Point2 gpos = Input::get_singleton()->get_mouse_position(); Point2 gpos = Input::get_singleton()->get_mouse_position();
popup_menu->set_position(gpos); popup_menu->set_position(gpos);
popup_menu->set_size(Size2(-1, -1));
popup_menu->popup(); popup_menu->popup();
} }
} }