We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9dd4c2 commit 64aecefCopy full SHA for 64aecef
assets/web-ui/js/widget.js
@@ -572,9 +572,13 @@ class Widget {
572
573
this.repaintTimeout = setTimeout(
574
() => {
575
+ let initialScrollPos = 0;
576
this.repaintTimeout = null;
577
578
const id = this.container.attr('id');
579
+ if (id === 'flatprofile') {
580
+ initialScrollPos = document.querySelector('#flatprofile > div').scrollTop;
581
+ }
582
console.time('repaint ' + id);
583
console.time('clear ' + id);
584
this.clear();
@@ -583,6 +587,9 @@ class Widget {
587
this.render();
588
console.timeEnd('render ' + id);
585
589
console.timeEnd('repaint ' + id);
590
591
+ document.querySelector('#flatprofile > div').scrollTop = initialScrollPos;
592
586
593
},
594
0
595
);
0 commit comments