Skip to content

Commit

Permalink
Try to restore tabulator's scrollbar position on every renderComplete…
Browse files Browse the repository at this point in the history
… not only on the initial one
  • Loading branch information
Kadek committed Jul 22, 2022
1 parent ff39f02 commit aa1a6ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions panel/models/tabulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit aa1a6ce

Please sign in to comment.