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;