From 8b9d76fbdb76a8c7f7d3051b422651848511439d Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 29 Oct 2018 12:22:32 +0100 Subject: [PATCH] fix #2319 @0:20 --- js/libs/fluidbook/fluidbook.resize.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}); -- 2.39.5