PDA

View Full Version : [FIXED] List scroll issue



kostik83
13 Jul 2010, 10:36 AM
Error: Uncaught TypeError: Cannot call method 'findParent' of null

Sometimes the target in Ext.List.getActiveGroupNode() does not exists, so i suggest to fix this error int he following way (by checking that target exists)


Ext.override(Ext.List, {
getActiveGroupNode : function() {
var x = this.pageBox.left + (this.pageBox.width / 2),
y = this.pageBox.top + 0,
target = Ext.Element.fromPoint(x, y);
return (target) ? (target.findParent('.x-list-group', null, true)) : null;
}
});

Jamie Avins
19 Jul 2010, 9:54 AM
This is fixed for the next release.

kostik83
19 Jul 2010, 9:59 AM
thanks