From: Vincent Vanwaelscappel Date: Thu, 7 Sep 2023 15:58:15 +0000 (+0200) Subject: wait #6258 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d2ae73e40aecccc431f00a74e3cd6fbdb36c6ab6;p=fluidbook-toolbox.git wait #6258 @0.25 --- diff --git a/resources/linkeditor/js/linkeditor.resize.js b/resources/linkeditor/js/linkeditor.resize.js index f0f0b2a8d..e60cbe579 100644 --- a/resources/linkeditor/js/linkeditor.resize.js +++ b/resources/linkeditor/js/linkeditor.resize.js @@ -48,8 +48,9 @@ LinkeditorResize.prototype = { let dimCover = $this.linkeditor.utils.getPageDimensions(1); let pw; let ph; + let special = false; - $(".linkeditor-page[data-page]").each(function () { + $(".linkeditor-page[data-page]:visible").each(function () { let p = $(this).attr('data-page'); let dim = $this.linkeditor.utils.getPageDimensions(p); if (dim === undefined) { @@ -59,7 +60,7 @@ LinkeditorResize.prototype = { ph = dim[1]; if ($this.linkeditor.utils.isSpecialPage(p)) { - + special = true; } else if ($this.linkeditor.mobileFirst) { pw = dimCover[0]; } else { @@ -70,7 +71,7 @@ LinkeditorResize.prototype = { }); let fw = pw; - if (!this.linkeditor.single) { + if (!this.linkeditor.single && !special) { fw *= 2; } $("#linkeditor-page-right").css({left: this.linkeditor.pw});