1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-05 15:32:55 +02:00

Respect pre-paginated page spreads

This commit is contained in:
Mikkel Vester Petersen 2019-03-13 17:06:07 +01:00
parent d9c2559b21
commit 5f7faf1450
2 changed files with 54 additions and 31 deletions

View file

@ -15,7 +15,8 @@ class IframeView {
height: 0,
layout: undefined,
globalLayoutProperties: {},
method: undefined
method: undefined,
forceRight: false
}, options || {});
this.id = "epubjs-view-" + uuid();
@ -164,6 +165,10 @@ class IframeView {
return new Promise((resolve, reject) => {
// Expand the iframe to the full size of the content
this.expand();
//
if (this.settings.forceRight) {
this.element.style.marginLeft = this.width() + "px";
}
resolve();
});