Skip to content

Commit

Permalink
Merge pull request #45212 from Chaosus/vs_fix_popup_size
Browse files Browse the repository at this point in the history
Fix invalid visual shader context menu popup size
  • Loading branch information
akien-mga committed Jan 15, 2021
2 parents ebe8751 + c955a16 commit 2c68cb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/plugins/visual_shader_editor_plugin.cpp
Expand Up @@ -2387,6 +2387,7 @@ void VisualShaderEditor::_graph_gui_input(const Ref<InputEvent> &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();
}
}
Expand Down

0 comments on commit 2c68cb1

Please sign in to comment.