Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Jul 2009
    Posts
    9
    Vote Rating
    0
    markrgli is on a distinguished road

      0  

    Default [CLOSED] [2.0] TreePanel Context Menu Issue

    [CLOSED] [2.0] TreePanel Context Menu Issue


    Hi guys,

    It's kinda weird but in IE8, when a TreePanel's context menu contains more than two (2) items, the context menu "flickers" (appears and immediately disappears) when you try to open it.

    To test, I just copied the code in the Context Menu Tree demo and added one Menu Item to the context menu.

    Can anyone confirm this?

    The context menu in the Context Menu Tree demo contains only two items.

    Browser: IE8 (works fine in IE6, FF, and hosted mode)
    GXT: 2.0
    GWT: 1.6.4
    OS: Windows XP

    Thanks in advance.
    Mark

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    I cant reproduce, also not on the examples. Please post a working testcase as descripbed in the bug forum guidelines.

  3. #3
    Ext User
    Join Date
    Jul 2009
    Posts
    9
    Vote Rating
    0
    markrgli is on a distinguished road

      0  

    Default


    Thanks for looking, sven. Below is my test code. Here's the full version number of IE I'm using, if it helps: 8.0.6001.18702.

    I'm hope it's just something in my IE browser that's causing this.

    Thanks a lot.

    Code:
    import com.extjs.gxt.ui.client.data.BaseModelData;
    import com.extjs.gxt.ui.client.store.TreeStore;
    import com.extjs.gxt.ui.client.widget.ContentPanel;
    import com.extjs.gxt.ui.client.widget.LayoutContainer;
    import com.extjs.gxt.ui.client.widget.layout.FitLayout;
    import com.extjs.gxt.ui.client.widget.menu.Menu;
    import com.extjs.gxt.ui.client.widget.menu.MenuItem;
    import com.extjs.gxt.ui.client.widget.treepanel.TreePanel;
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.user.client.ui.RootPanel;
    
    public class TreeContextMenuTest implements EntryPoint {
        
        @Override
        public void onModuleLoad() {
            LayoutContainer panel = createTree();
            panel.setWidth(300);
            panel.setHeight(500);
            
            // Host HTML file contains div element named 'app'
            RootPanel.get("app").add(panel);
        }
        
        LayoutContainer createTree() {
            ContentPanel panel = new ContentPanel();
            panel.setLayout(new FitLayout());
            
            TreeStore<BaseModelData> store = new TreeStore<BaseModelData>();
            for (int i = 0; i < 3; i++) {
                BaseModelData m = new BaseModelData();
                m.set("text", "Root" + i);
                store.add(m, false);
                for (int j = 0; j < 3; j++) {
                    BaseModelData n = new BaseModelData();
                    n.set("text", "Child" + j);
                    store.add(m, n, false);
                }
            }
            TreePanel<BaseModelData> tree = new TreePanel<BaseModelData>(store);
            tree.setDisplayProperty("text");
            
            Menu menu = new Menu();
            
            final MenuItem newItem = new MenuItem("New");
            menu.add(newItem);
            
            final MenuItem editItem = new MenuItem("Edit");
            menu.add(editItem);
            
            // When dupItem and delItem are not added, context menu works fine 
            final MenuItem dupItem = new MenuItem("Duplicate");
            menu.add(dupItem);
            
            final MenuItem delItem = new MenuItem("Delete");
            menu.add(delItem);
            
            tree.setContextMenu(menu);
    
            // Added this code to make the test case as close as possible to my application.
            // However, regardless of whether this code is commented out or not, the problem occurs.
    //        tree.addListener(Events.ContextMenu, new Listener<TreePanelEvent<BaseModelData>>() {
    //            @Override
    //            public void handleEvent(TreePanelEvent<BaseModelData> be) {
    //                BaseModelData m = be.getItem();
    //                if (((String)m.get("text")).startsWith("Root")) {
    //                    newItem.enable();
    //                    editItem.disable();
    //                    dupItem.disable();
    //                    delItem.disable();
    //                } else {
    //                    newItem.enable();
    //                    editItem.enable();
    //                    dupItem.enable();
    //                    delItem.enable();
    //                }
    //            }
    //        });
            
            panel.add(tree);
            
            return panel;
        }
    
    }
    Mark

  4. #4
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Works fine for me. I let this open to see if someone else has the same problem.

    Make sure you use GWT 1.7 if testing against IE8

  5. #5
    Ext User
    Join Date
    Jul 2009
    Posts
    9
    Vote Rating
    0
    markrgli is on a distinguished road

      0  

    Default


    Just to update, I downloaded GWT 1.7 and GXT 2.0.1 and so far the problem has not been occurring.
    Mark

  6. #6
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    ok, marking this as closed than.

  7. #7
    Ext User
    Join Date
    Jul 2009
    Posts
    9
    Vote Rating
    0
    markrgli is on a distinguished road

      0  

    Default


    Thanks, sven.
    Mark

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi