resizePages: function () {
let $this = this;
let dimCover = $this.linkeditor.utils.getPageDimensions(1);
+ let pw;
+ let ph;
$(".linkeditor-page[data-page]").each(function () {
let p = $(this).attr('data-page');
let dim = $this.linkeditor.utils.getPageDimensions(p);
- let pw = dim[0];
- let ph = dim[1];
+ if (dim === undefined) {
+ dim = dimCover;
+ }
+ pw = dim[0];
+ ph = dim[1];
+
if ($this.linkeditor.utils.isSpecialPage(p)) {
} else if ($this.linkeditor.mobileFirst) {
pw = dimCover[0];
ph = dimCover[1];
}
- $("#linkeditor-fluidbook").css({width: pw, height: ph});
$(this).css({width: pw, height: ph});
});
+ let fw = pw;
+ if (!this.linkeditor.single) {
+ fw *= 2;
+ }
+ $("#linkeditor-page-right").css({left: this.linkeditor.pw});
+ $("#linkeditor-fluidbook").css({width: fw, height: ph});
+
},
resizeMain: function () {