1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-02 14:49:16 +02:00

call updateLayout inside currentLocation

This commit is contained in:
Ali Kazemkhanloo 2020-07-14 22:23:21 +04:30 committed by GitHub
parent 36f2e1b684
commit 2c94fa50c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -634,6 +634,7 @@ class DefaultViewManager {
}
currentLocation(){
this.updateLayout();
if (this.isPaginated && this.settings.axis === "horizontal") {
this.location = this.paginatedLocation();
} else {
@ -712,7 +713,6 @@ class DefaultViewManager {
}
paginatedLocation(){
this.updateLayout();
let visible = this.visible();
let container = this.container.getBoundingClientRect();