]> _ Git - fluidbook-html5.git/commitdiff
fix #2319 @0:20
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 29 Oct 2018 11:22:32 +0000 (12:22 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 29 Oct 2018 11:22:32 +0000 (12:22 +0100)
js/libs/fluidbook/fluidbook.resize.js

index 2eb69c2905be551d17b6ede0251bcc7e85c965ac..96ec40f74fb45b00c9ab89ec2409169e81fe433b 100644 (file)
@@ -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});