Bug 24270

Summary: Wrong positioning of context menu at the end of the screen
Product: WebKit Reporter: Enrico Tröger <enrico.troeger>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Current behaviour: menu is positioned wrongly and scroll arrows are added
none
Expected behaviour: the menu is positioned above the mouse cursor when there is no room below (at the bottom of the screen)
none
Possible solution by letting GTK position the menu none

Enrico Tröger
Reported 2009-03-01 02:04:51 PST
On GTK, the context menu of WebKit is wrongly positioned when the browser window is near the bottom of the screen. Instead of showing the menu above the mouse cursor, the context menu is shown below and since there is no room to display it, GTK shrinks the menu height (and adds scroll arrows to access non visible menu items). See the attached screenshots. The attached patch simply removes the positioning function for the context menu and let GTK position the menu. This works fine here however I guess there was a reason for the custom position function.
Attachments
Current behaviour: menu is positioned wrongly and scroll arrows are added (36.02 KB, image/png)
2009-03-01 02:06 PST, Enrico Tröger
no flags
Expected behaviour: the menu is positioned above the mouse cursor when there is no room below (at the bottom of the screen) (35.31 KB, image/png)
2009-03-01 02:07 PST, Enrico Tröger
no flags
Possible solution by letting GTK position the menu (1.40 KB, patch)
2009-03-01 02:08 PST, Enrico Tröger
no flags
Enrico Tröger
Comment 1 2009-03-01 02:06:09 PST
Created attachment 28137 [details] Current behaviour: menu is positioned wrongly and scroll arrows are added
Enrico Tröger
Comment 2 2009-03-01 02:07:24 PST
Created attachment 28138 [details] Expected behaviour: the menu is positioned above the mouse cursor when there is no room below (at the bottom of the screen)
Enrico Tröger
Comment 3 2009-03-01 02:08:31 PST
Created attachment 28139 [details] Possible solution by letting GTK position the menu
Enrico Tröger
Comment 4 2009-04-25 11:13:14 PDT
*** This bug has been marked as a duplicate of 25373 ***
Note You need to log in before you can comment on or make changes to this bug.