]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
node/Tasks: improve scroller behaviour on datastore loading
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 25 Sep 2020 14:13:27 +0000 (16:13 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 29 Sep 2020 07:15:26 +0000 (09:15 +0200)
commit0c3ade1d3273932568fc2bc433aa004acce44500
tree0929d1cc29bef65b70d26d3fb408d7d63481a500
parentc2ad526694e4af2d4bdb83d3209ebdf00799f06b
node/Tasks: improve scroller behaviour on datastore loading

when we have a fixed totalcount, the scrollbar behaves nicely,
but sometimes we do not have a fixed total, so the api will return
'+1' if there are more elments to load

when doing this, the scrollbar has a weird behaviour where it changes
size frequently the more one scrolls down.

instead, tell the grid to update its layout as soon as the store
prefetches the data, which triggers an update of the scrollbar

this still lets it jump around a little, but only once per load and
more consistent

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/node/Tasks.js