Bug 146618 - the location of contextmenu is computed incorrectly
Summary: the location of contextmenu is computed incorrectly
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-05 02:12 PDT by vmpjin
Modified: 2015-07-05 02:12 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vmpjin 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!