]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
ui: logpanel: fix glitching fast task logs
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 23 Nov 2021 12:02:28 +0000 (13:02 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 23 Nov 2021 13:47:20 +0000 (14:47 +0100)
commitb5ff20a615649c1c624ad3569aed479877fbd9a9
tree1b3c61a4ef24c0a243e28c97bfa401a30aff691b
parentaeecc06ce157fb7edfe6f13d9b5fb17bf2d6f96b
ui: logpanel: fix glitching fast task logs

if the total we got was bigger than the last line number, we appended
empty lines at the end of the panel, to which we scrolled

the only time we need to do that is when we do not follow the task log
'live' but when we are elsewhere (to keep the scroll position/size)

so give the lines directly to 'updateView' and let it decide
if we append the empty lines at the end

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