-
14 Jul 2010 9:38 AM #1
[FNR] setHideOnClick(false) ignored on MenuItem with submenues added on StartMenu
[FNR] setHideOnClick(false) ignored on MenuItem with submenues added on StartMenu
- Detailed description of the problem
If I add a MenuItem that has a submenu and are added with MenuItem.setHideOnClick(false) as "root" item on StartMenu and then I click on it, hides the menu.
- GXT version
2.1.1
- Host mode / web mode / both
Both
- Browser and version
I tested it on IE8, FF3.6, Chrome 5
- Operating System
Windows XP SP3
- Sample code
PHP Code:public class Test implements EntryPoint {
@Override
public void onModuleLoad() {
MenuItem m1 = new MenuItem();
m1.setText("Item 1");
MenuItem m2 = new MenuItem();
m2.setText("Item 2");
m2.setHideOnClick(false); // IGNORED
MenuItem m21 = new MenuItem();
m21.setText("Item 2.1");
m21.setHideOnClick(false); // NOT IGNORED
MenuItem m211 = new MenuItem();
m211.setText("Item 2.1.1");
MenuItem m22 = new MenuItem();
m22.setText("Item 2.2");
Menu subM2 = new Menu();
subM2.add(m21);
subM2.add(m22);
Menu subM21 = new Menu();
subM21.add(m211);
m2.setSubMenu(subM2);
m21.setSubMenu(subM21);
Desktop desktop = new Desktop();
StartMenu start = desktop.getTaskBar().getStartMenu();
start.add(m1);
start.add(m2);
}
}
- Detailed description of the problem
-
14 Jul 2010 12:32 PM #2
-
15 Jul 2010 5:31 AM #3
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FNR] NPE appears after container is removed and then added into DOM in GXT 2.1.1
By christin in forum Ext GWT: Bugs (2.x)Replies: 3Last Post: 11 Jun 2010, 6:32 AM -
[FNR] menuitem and treepanel
By allanpg in forum Ext GWT: Bugs (2.x)Replies: 2Last Post: 2 Mar 2010, 4:35 AM -
[FNR][1.2.4] Column not hidden anymore in Grid with showGroupedColumn=false
By z013908 in forum Ext GWT: Bugs (1.x)Replies: 4Last Post: 12 Jun 2009, 4:48 AM -
[FNR] [2.0 M2 - Snapshot] Desktop startmenu broken
By takayser in forum Ext GWT: Bugs (2.x)Replies: 2Last Post: 14 May 2009, 11:21 AM -
[FNR] Table.setColumnContextMenu(false) doesn't work
By bhahn in forum Ext GWT: Bugs (1.x)Replies: 1Last Post: 4 Jun 2008, 9:27 PM


Reply With Quote