Bug 146618

Summary: the location of contextmenu is computed incorrectly
Product: WebKit Reporter: vmpjin
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   

vmpjin
Reported 2015-07-05 02:12:46 PDT
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!
Attachments
Note You need to log in before you can comment on or make changes to this bug.