You found a bug! We've classified it as a bug in our system. We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    May 2013
    Posts
    3
    Vote Rating
    2
    hustfyb is on a distinguished road

      1  

    Default bug in grouppanel example

    bug in grouppanel example


    At extjs4.2.1 the example for grouppanel will report "Uncaught TypeError: Cannot call method 'addCls' of null " in the console when you move mouse over the tree node.
    At extjs4.2.0 it's OK, but has someting wrong with corner.
    It's should like this.
    wronge.png
    But
    wronge.png
    The examples are all from the sencha site.
    http://docs.sencha.com/extjs/4.2.1/#...grouptabs.html
    http://docs.sencha.com/extjs/4.2.0/#...grouptabs.html

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,993
    Vote Rating
    212
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

  3. #3
    Sencha User
    Join Date
    Jun 2013
    Posts
    3
    Vote Rating
    2
    cnspeckn is on a distinguished road

      0  

    Default


    I've stumbled over the same issue. After some debugging, it seems that what basically happens is
    • The tabs are implemented as a treepanel
    • GroupTabRenderer overwrites the table templates and replaces the table with nested divs
    • The hover handler attempts to the inner table element via getRowStyleTableEl and change its class
    • getRowStyleTableEl tries to locate the table via down and returns null -> Exception
    I used the following overwrite to work around the bug in our code for now. Although certainly not the best way to go about it, it is small and does its job until GroupTabPanel is fixed

    Code:
    Ext.define('Hack.fixes.GroupTabRenderer', {
        override: 'Ext.ux.GroupTabRenderer',
    
    
        init: function(grid) {
            var me = this;
    
    
            me.callParent(arguments);
    
    
            grid.getView().getRowStyleTableEl = function() {
                return {
                    addCls: function() {},
                    removeCls: function() {}
                }
            };
        }
    });

  4. #4
    Sencha User
    Join Date
    Apr 2008
    Posts
    10
    Vote Rating
    2
    pholcomb is on a distinguished road

      0  

    Default Thanks

    Thanks


    Thanks for the work-around on this. We started seeing this bug today.