Skip to content

Commit 00b38fb

Browse files
restoring scroll position after page switch
1 parent e16903d commit 00b38fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/js/PivotView.js

+2
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,9 @@ PivotView.prototype._rowClickHandler = function (rowIndex, cellData) {
236236
PivotView.prototype._pageSwitcherHandler = function (pageIndex) {
237237

238238
this.pagination.page = pageIndex;
239+
this.saveScrollPosition();
239240
this.renderRawData(this.controller.dataController.getData());
241+
this.restoreScrollPosition();
240242

241243
};
242244

0 commit comments

Comments
 (0)