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:
parent
d9c2559b21
commit
5f7faf1450
2 changed files with 54 additions and 31 deletions
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue