From 3e618b84048a47b07976be250a1c7ff2ddd1c585 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 3 Jun 2019 17:29:44 +0200 Subject: [PATCH] wait #2815 @0.5 --- js/libs/fluidbook/fluidbook.resize.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.resize.js b/js/libs/fluidbook/fluidbook.resize.js index a9483213..43b5c3da 100644 --- a/js/libs/fluidbook/fluidbook.resize.js +++ b/js/libs/fluidbook/fluidbook.resize.js @@ -111,14 +111,18 @@ FluidbookResize.prototype = { var headerScale = 1; var interfaceScale, headerScale; - if (this.orientation == 'landscape') { + if (this.orientation === 'landscape') { interfaceScale = Math.min(1, this.ww / this.referenceWidthLandscape, this.hh / this.referenceHeight); - } else if (this.orientation == 'portrait') { + } else if (this.orientation === 'portrait') { var nminwidth = ($("#nav a").length * 51) + 205 + 50; var refWidth = Math.max(this.referenceWidthPortrait, nminwidth); headerScale = Math.min(1, this.ww / refWidth, this.hh / this.referenceHeight); interfaceScale = Math.min(1, 0.7 * this.ww / refWidth, 0.7 * this.hh / this.referenceHeight); } + if (this.fluidbook.mobilefirst.enabled) { + interfaceScale = Math.max(0.8, interfaceScale); + headerScale = Math.max(0.8, headerScale) + } this.interfaceScale = interfaceScale; this.headerScale = headerScale; -- 2.39.5