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:
parent
36f2e1b684
commit
2c94fa50c6
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue