From: Vincent Vanwaelscappel Date: Mon, 29 Oct 2018 11:22:32 +0000 (+0100) Subject: fix #2319 @0:20 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=8b9d76fbdb76a8c7f7d3051b422651848511439d;p=fluidbook-html5.git fix #2319 @0:20 --- diff --git a/js/libs/fluidbook/fluidbook.resize.js b/js/libs/fluidbook/fluidbook.resize.js index 2eb69c29..96ec40f7 100644 --- a/js/libs/fluidbook/fluidbook.resize.js +++ b/js/libs/fluidbook/fluidbook.resize.js @@ -297,7 +297,7 @@ FluidbookResize.prototype = { checkLogoVisibility: function () { var logo = document.getElementById("logo").getBoundingClientRect(); var fluidbook = document.getElementById("fluidbook").getBoundingClientRect(); - var hidden = logo.bottom > fluidbook.top && logo.left < fluidbook.right; + var hidden = logo.bottom > fluidbook.top && logo.left < (fluidbook.right - $("#center-fluidbook").data('left')); if (hidden) { $("#logo").addClass('hidden'); } else { @@ -375,7 +375,7 @@ FluidbookResize.prototype = { if (changeOrientation) { $(this.fluidbook).trigger('fluidbook.resize.beforeOrientationChange'); this.fluidbook.zoom.resetZoom(); - if(!this.fluidbook.firstTransition) { + if (!this.fluidbook.firstTransition) { this.fluidbook.pageTransition(); } $(this.fluidbook).trigger('fluidbook.resize.orientation', {orientation: this.orientation});