the path is WebKit2/UIProcess/gtk/WebContextMenuProxyGtk.cpp. I want to change the location of the menu but it canot work well on y axis in the function menuPositionFunction--gtk_widget_get_preferred_size(GTK_WIDGET(menu), &menuSize, 0); the menuSize is not correct,it's the minimum size,so it's height is just one item's height of the menu,I think we should use naturalHeight.it's width works well,because their values are the same. So I think it should be gtk_widget_get_preferred_size(GTK_WIDGET(menu), 0, &menuSize); Thank you!