]> git.proxmox.com Git - proxmox-widget-toolkit.git/blobdiff - src/node/Tasks.js
node/Tasks: improve scroller behaviour on datastore loading
[proxmox-widget-toolkit.git] / src / node / Tasks.js
index c41f0b52dab26004b90fd168670d55455f03a4bf..2d8730050fc768b981ed22d88b35ead584e4c627 100644 (file)
@@ -28,6 +28,14 @@ Ext.define('Proxmox.node.Tasks', {
            },
        });
 
+       store.on('prefetch', function() {
+           // we want to update the scrollbar on every store load
+           // since the total count might be different
+           // the buffered grid plugin does this only on scrolling itself
+           // and even reduces the scrollheight again when scrolling up
+           me.updateLayout();
+       });
+
        let userfilter = '';
        let filter_errors = 0;