Skip to content

Commit

Permalink
Fixes reflow view missing spineItem property in pagination event, see #…
Browse files Browse the repository at this point in the history
  • Loading branch information
danielweck authored Oct 3, 2017
1 parent e9a676e commit 6d8beaa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/views/reflowable_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -865,18 +865,18 @@ 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
// //is shifted in side the containing div. Hiding and showing the html element puts document in place.
// _$epubHtml.hide();
// setTimeout(function() {
// _$epubHtml.show();
// onPaginationChanged(self); // => redraw() => showBook()
// onPaginationChanged(self, _currentSpineItem); // => redraw() => showBook()
// }, 50);

}
Expand Down

0 comments on commit 6d8beaa

Please sign in to comment.