Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 281641

Summary: [Menu] Cut off at browser edge at the first time
Product: [RT] RAP Reporter: Maghen Calinghee <maghen.calinghee>
Component: JFaceAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: maghen.calinghee, philippe.nembrard, webmaster
Version: 1.2   
Target Milestone: 1.3 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
A plug-in project which points out the bug none

Description Maghen Calinghee CLA 2009-06-26 06:10:14 EDT
Created attachment 140212 [details]
A plug-in project which points out the bug

Build ID: 1.2

Steps To Reproduce:
When we use a MenuManager to display a context Menu like in a TableViewer, the popup Menu is not displayed entirely when we do a right-click at the bottom edge of the browser.
It just happens at the first time, if we try to display it again it works well : the menu is placed at a right position to display all the content.

More information:
I'm providing a plug-in project which points out the bug. You just have to import it in your IDE and run it as RAP application.
To reproduce the bug , you just have to do a right-click at the bottom of the browser to show the context menu. You'll noticed that the popup is cut.
Comment 1 Markus Krüger CLA 2009-07-14 05:32:47 EDT
Same here.
Comment 2 Benjamin Muskalla CLA 2009-08-07 10:05:59 EDT
In the first request we unhide the menu and add the buttons afterwards. The second time we already have the menu items and just unhide the menu. I think the call to show() is too early as the menu can't compute it's real size without the buttons and thus is not able to adjust the coordinates.
Comment 3 Rüdiger Herrmann CLA 2009-08-27 06:47:22 EDT
Fixed by re-implementing the client-side menu (see bug 287097)
Comment 4 Markus Krüger CLA 2009-08-27 07:15:39 EDT
Now it works. Godd job.