mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Merge pull request #1104 from alikazemkhanloo/fixPageNumbers
update layout before calculating location
This commit is contained in:
commit
9a9a32799f
1 changed files with 1 additions and 0 deletions
|
@ -644,6 +644,7 @@ class DefaultViewManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
currentLocation(){
|
currentLocation(){
|
||||||
|
this.updateLayout();
|
||||||
if (this.isPaginated && this.settings.axis === "horizontal") {
|
if (this.isPaginated && this.settings.axis === "horizontal") {
|
||||||
this.location = this.paginatedLocation();
|
this.location = this.paginatedLocation();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue