mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
Update expands for vertical paginated
This commit is contained in:
parent
4a2e9e97a9
commit
19cb5ac10f
1 changed files with 4 additions and 0 deletions
|
@ -301,6 +301,10 @@ class IframeView {
|
||||||
} // Expand Vertically
|
} // Expand Vertically
|
||||||
else if(this.settings.axis === "vertical") {
|
else if(this.settings.axis === "vertical") {
|
||||||
height = this.contents.textHeight();
|
height = this.contents.textHeight();
|
||||||
|
if (this.settings.flow === "paginated" &&
|
||||||
|
height % this.layout.height > 0) {
|
||||||
|
height = Math.ceil(height / this.layout.height) * this.layout.height;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only Resize if dimensions have changed or
|
// Only Resize if dimensions have changed or
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue