[pve-devel] [PATCH] ext5migrate: remove Ext.grid.feature.Chunking hack

Emmanuel Kasper e.kasper at proxmox.com
Wed May 6 12:49:03 CEST 2015


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 7a9baa5..0449573 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'],
-- 
2.1.4





More information about the pve-devel mailing list