From 00b38fbec4267344c790a2d5fbb958a7d6034cf3 Mon Sep 17 00:00:00 2001 From: ZitRo Date: Fri, 23 Jan 2015 22:55:37 +0200 Subject: [PATCH] restoring scroll position after page switch --- source/js/PivotView.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/js/PivotView.js b/source/js/PivotView.js index 09e0ab8..d4bf420 100644 --- a/source/js/PivotView.js +++ b/source/js/PivotView.js @@ -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(); };