1
0
Fork 0
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:
Fred Chasen 2020-06-05 09:17:44 -07:00
parent 4a2e9e97a9
commit 19cb5ac10f

View file

@ -301,6 +301,10 @@ class IframeView {
} // Expand Vertically
else if(this.settings.axis === "vertical") {
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