From aa1a6ceec60f72098534f38d270c2c4682e63682 Mon Sep 17 00:00:00 2001 From: Kadek Date: Fri, 22 Jul 2022 09:50:24 +0200 Subject: [PATCH] Try to restore tabulator's scrollbar position on every renderComplete not only on the initial one --- panel/models/tabulator.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/panel/models/tabulator.ts b/panel/models/tabulator.ts index 233cfe13ce..8dea61aa87 100644 --- a/panel/models/tabulator.ts +++ b/panel/models/tabulator.ts @@ -315,8 +315,9 @@ export class DataTabulatorView extends PanelHTMLBoxView { this.setSelection() this.relayout() this._initializing = false - if (this._lastVerticalScrollbarTopPosition) - this.tabulator.rowManager.element.scrollTop = this._lastVerticalScrollbarTopPosition; + } + if (this._lastVerticalScrollbarTopPosition) { + this.tabulator.rowManager.element.scrollTop = this._lastVerticalScrollbarTopPosition; } }