Bug 24270 - Wrong positioning of context menu at the end of the screen
Summary: Wrong positioning of context menu at the end of the screen
Status: RESOLVED DUPLICATE of bug 25373
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-01 02:04 PST by Enrico Tröger
Modified: 2009-04-25 11:13 PDT (History)
0 users

See Also:


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 Details
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 Details
Possible solution by letting GTK position the menu (1.40 KB, patch)
2009-03-01 02:08 PST, Enrico Tröger
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Enrico Tröger 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.
Comment 1 Enrico Tröger 2009-03-01 02:06:09 PST
Created attachment 28137 [details]
Current behaviour: menu is positioned wrongly and scroll arrows are added
Comment 2 Enrico Tröger 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)
Comment 3 Enrico Tröger 2009-03-01 02:08:31 PST
Created attachment 28139 [details]
Possible solution by letting GTK position the menu
Comment 4 Enrico Tröger 2009-04-25 11:13:14 PDT

*** This bug has been marked as a duplicate of 25373 ***