ext5migrate: remove Ext.grid.feature.Chunking hack

With ExtJS 4, we introduced an override to Ext.grid.feature.Chunking
to fix scrollings problems in the grid when having a high number
of nodes. Ext.grid.feature.Chunking has been removed from ExtJS
in version 5, so we hope either the problem is fixed on ExtJS side,
or we will have to find a different workaround.
This commit is contained in:
Emmanuel Kasper 2015-05-12 15:16:23 +02:00 committed by Dietmar Maurer
parent b486202d79
commit 6ccdfae501

View File

@ -1,18 +1,3 @@
// fixme: remove this fix
// this hack is required for ExtJS 4.0.0
Ext.override(Ext.grid.feature.Chunking, {
attachEvents: function() {
var grid = this.view.up('gridpanel'),
scroller = grid.down('gridscroller[dock=right]');
if (scroller === null ) {
grid.on("afterlayout", this.attachEvents, this);
return;
}
scroller.el.on('scroll', this.onBodyScroll, this, {buffer: 300});
},
rowHeight: PVE.Utils.gridLineHeigh()
});
Ext.define('PVE.grid.ResourceGrid', {
extend: 'Ext.grid.GridPanel',
alias: ['widget.pveResourceGrid'],