this.resizeSplash();
-
if (this.fluidbook.form) {
try {
this.fluidbook.form.resize();
} catch (e) {
-
}
}
},
handleOrientation: function () {
var $this = this;
- var changeOrientation = this.orientation != '';
+
var o = this.fluidbook.support.getOrientation();
var newo;
return false;
}
-
if (o == 0 || o == 180) {
newo = 'portrait';
$('body').removeClass('landscape');
newo = 'landscape';
$('body').removeClass('portrait');
}
+
+ console.log(newo);
+
+ var changeOrientation = this.orientation !== newo;
var force = this.fluidbook.datas.mobileNavigationType != 'book';
if (!force && this.orientation == newo) {
return;
this.orientation = newo;
$('body').addClass(this.orientation);
-
this.fluidbook.displayOnePage = (this.orientation == 'portrait');
if (changeOrientation) {
- //console.warn('Orientation change! ' + this.orientation);
+ console.warn('Orientation change! ' + this.orientation);
$(this.fluidbook).trigger('fluidbook.resize.beforeOrientationChange');
this.fluidbook.zoom.resetZoom();
this.fluidbook.pageTransition();
}, 2000);
}
}
-
-
},
getScreenFluidbookWidth: function () {
return $("#fluidbook").outerWidth() * fluidbook.resize.bookScale;