]> _ Git - fluidbook-html5.git/commitdiff
#7380
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 11 Mar 2025 15:30:37 +0000 (16:30 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 11 Mar 2025 15:30:37 +0000 (16:30 +0100)
js/libs/fluidbook/fluidbook.resize.js

index db39a42455641d585d5b598f5797cc7446a506dc..51d5132fa22b2cfbcf898db593e6cbdf7323279f 100644 (file)
@@ -192,7 +192,7 @@ FluidbookResize.prototype = {
             }
 
             this.marginTop = (parseInt(this.fluidbook.settings.menuHeight) * headerScale) + (this.margintop * interfaceScale);
-            if (this.fluidbook.settings.mobileHideSliderIfOverlaps) {
+            if (this.reduceVerticalMargins() && this.fluidbook.settings.mobileHideSliderIfOverlaps) {
                 this.marginBottom = 0;
             } else {
                 this.marginBottom = (10 + this.marginbottom) * interfaceScale;
@@ -438,7 +438,7 @@ FluidbookResize.prototype = {
     },
 
     checkSliderVisibility: function () {
-        if (this.fluidbook.settings.mobileHideSliderIfOverlaps && ($("#slider").get(0).getBoundingClientRect().top - $("#fluidbook").get(0).getBoundingClientRect().bottom < 5)) {
+        if (this.reduceVerticalMargins() && this.fluidbook.settings.mobileHideSliderIfOverlaps && ($("#slider").get(0).getBoundingClientRect().top - $("#fluidbook").get(0).getBoundingClientRect().bottom < 5)) {
             $('body').addClass('slider-hidden');
         } else {
             $('body').removeClass('slider-hidden');