From 6ccdfae501d429571260d902c9f2099b1ab8d5bf Mon Sep 17 00:00:00 2001 From: Emmanuel Kasper Date: Tue, 12 May 2015 15:16:23 +0200 Subject: [PATCH] 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. --- www/manager5/grid/ResourceGrid.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/www/manager5/grid/ResourceGrid.js b/www/manager5/grid/ResourceGrid.js index 7a9baa5f..04495736 100644 --- a/www/manager5/grid/ResourceGrid.js +++ b/www/manager5/grid/ResourceGrid.js @@ -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'],