]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
toolkit: fix #1510: don't scroll back to focus when view refreshes
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 19 Dec 2017 07:16:13 +0000 (08:16 +0100)
committerDominik Csapak <d.csapak@proxmox.com>
Thu, 11 Jan 2018 13:45:48 +0000 (14:45 +0100)
commit47d1c80c37f24f50bdb702d765b9c995b17964c4
treee3f88cbe09fd93265dd8daf2666ae79364f56185
parent3c15824972c305f0606448fdfed5210d09719bc4
toolkit: fix #1510: don't scroll back to focus when view refreshes

adds a workaround, so that we restore the scroll position when we
restore the focus. Fixies an annoying issue where, if a user had an
ellemtn selected, scrolled down and then a store refresh re-rendered
the view it was scrolled back to the selected item and the user lost
his scrolling position.

Add also the 'jumpToFocus' flag to allow enabling the old behaviour

commit e6f2a94f4fff3c125e8406a21d8d6159aca1421e from pve-manager

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Toolkit.js