Skip to content

Commit

Permalink
restoring scroll position after page switch
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaeverywhere committed Jan 23, 2015
1 parent e16903d commit 00b38fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/js/PivotView.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ PivotView.prototype._rowClickHandler = function (rowIndex, cellData) {
PivotView.prototype._pageSwitcherHandler = function (pageIndex) {

this.pagination.page = pageIndex;
this.saveScrollPosition();
this.renderRawData(this.controller.dataController.getData());
this.restoreScrollPosition();

};

Expand Down

0 comments on commit 00b38fb

Please sign in to comment.