Community
Participate
Working Groups
Build Identifier: 1.5.0-N-20120202-0214 Menus for CASCADE Menu Items are covering their parent item when they do not fit to the right of the menu. Reproducible: Always Steps to Reproduce: Open the rwtdemo Drag window to right of browser space Open menu, open sub-menu Sub menu should not obscure its parent.
Created attachment 211375 [details] screenshot of rwtdemo Menu menu "myfile.txt" should render to the left of "Open recently used >", not over top of it. Its very hard for a user to navigate when there are several cascade items in a menu.
I don't have CVS access here so I'm struggling to creating a diff to attach... Adding these lines to /org.eclipse.rap.rwt/qx/ui/popup/Popup.js at line ~288 fixes the problem. if( this._opener instanceof org.eclipse.rwt.widgets.MenuItem ) { var parentMenu = this._opener.getParentMenu(); var parentLeft = parentMenu.getLeft(); if (parentLeft) { if (left < parentLeft) { left = parentLeft - width; } } }
*** Bug 440217 has been marked as a duplicate of this bug. ***
Is there any plan to fix this issue? The fix I provided 2.5 years ago works in 2.3.1 if you change "org.eclipse.rwt.widgets.MenuItem" to "rwt.widgets.MenuItem"
(In reply to Chris Fairhall from comment #4) > Is there any plan to fix this issue? > The fix I provided 2.5 years ago works in 2.3.1 if you change > "org.eclipse.rwt.widgets.MenuItem" to "rwt.widgets.MenuItem" Could you please contribute your fix trough our Gerrit system [1]? First create a change against RAP master branch. Once the fix is approved we could consider it for backporting to RAP 2.3.2. [1] https://git.eclipse.org/r/#/