mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-09 10:14:46 +00:00
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:
parent
b486202d79
commit
6ccdfae501
@ -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', {
|
Ext.define('PVE.grid.ResourceGrid', {
|
||||||
extend: 'Ext.grid.GridPanel',
|
extend: 'Ext.grid.GridPanel',
|
||||||
alias: ['widget.pveResourceGrid'],
|
alias: ['widget.pveResourceGrid'],
|
||||||
|
Loading…
Reference in New Issue
Block a user