}
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;
},
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');