PDA

View Full Version : [FIXED] Ext 4.2.1.883 - Sandbox getRowStyleTableEl



geenie98
1 Aug 2013, 7:44 AM
I am getting a few errors when I mouse over and select nodes in a tree panel (sandboxed).


The error is as follows


Uncaught TypeError:
Cannot call method 'addCls' of null
Ext.define.setHighlightedItem
Ext.define.highlightItem


I am using a 4.2 tree panel wrapped in a 3.4 extjs container.

The problem comes from the function getRowStyleTableEl :
(Approx line 150483 of ext-all-sandbox-debug-w-comments.js, version 4.2.1.883)



// private
// returns the table that gains a top border when the first grid row is focused, selected,
// or hovered. Usually the main grid table but can be a sub-table, if a grouping
// feature is being used.
getRowStyleTableEl: function(item /* view item or row index */) {
var me = this;


if (!item.tagName) {
item = this.getNode(item);
}


return (me.isGrouping ? Ext.fly(item) : this.el).down('table.x-grid-table');
}


It's calling "down" directly table.x-grid-table, but since this is sandboxed, I think the function should maybe look something more like this :



getRowStyleTableEl: function(item /* view item or row index */) {
var me = this;


if (!item.tagName) {
item = this.getNode(item);
}


return (me.isGrouping ? Ext.fly(item) : this.el).down('table.' + Ext.baseCSSPrefix + 'grid-table');
}


Or am I potentially missing something?

evant
1 Aug 2013, 1:33 PM
You're correct, this one has already been fixed, the current code reads:



down('table.' + Ext.baseCSSPrefix + 'grid-table');


Thanks for the post.

farrukhwaseem
30 Oct 2013, 7:17 AM
HI

I have the same issue, in sandboxing mode, when I hover the Grid rows. This is still raising. I am using IE10 with windows 7.

Thanks

Farrukh

mixo
6 Apr 2014, 11:20 PM
Hi folks! still having this issue on extjs 4.2.2.1144