diff --git a/js/views/reflowable_view.js b/js/views/reflowable_view.js index e9601bb6e..465cd79e8 100644 --- a/js/views/reflowable_view.js +++ b/js/views/reflowable_view.js @@ -865,10 +865,10 @@ var ReflowableView = function(options, reader){ _paginationInfo.currentPageIndex = 0; // current page index is not stable, reset it self.restoreCurrentPosition(); } else { - onPaginationChanged(self); // => redraw() => showBook(), so the trick below is not needed + onPaginationChanged(self, _currentSpineItem); // => redraw() => showBook(), so the trick below is not needed } - //onPaginationChanged(self); // => redraw() => showBook(), so the trick below is not needed + //onPaginationChanged(self, _currentSpineItem); // => redraw() => showBook(), so the trick below is not needed // //We do this to force re-rendering of the document in the iframe. // //There is a bug in WebView control with right to left columns layout - after resizing the window html document @@ -876,7 +876,7 @@ var ReflowableView = function(options, reader){ // _$epubHtml.hide(); // setTimeout(function() { // _$epubHtml.show(); - // onPaginationChanged(self); // => redraw() => showBook() + // onPaginationChanged(self, _currentSpineItem); // => redraw() => showBook() // }, 50); }