this.initKeyboardShortcuts();
},
- initMaxPage:function(){
- var $this=this;
- key('⌘+alt+r, ctrl+alt+u', function(){
+ initMaxPage: function () {
+ var $this = this;
+ key('⌘+alt+r, ctrl+alt+u', function () {
$this.setMaxPage(0);
});
},
_hideSplash: function () {
$("#main,#viewOverlay,#view").css('visibility', 'visible');
+ this.resize.resize(false, true);
this.hideLoader(0, true);
if (this.support.transitions2d) {
});
}
},
- resize: function (init) {
+ resize: function (init, forceOrientation) {
if (init == undefined || init == null) {
init = false;
}
+ if (forceOrientation === undefined) {
+ forceOrientation = false;
+ }
var $this = this;
this.updateWindow();
- this.handleOrientation();
+ this.handleOrientation(init || forceOrientation);
if (this.fluidbook.support.android) {
this.fluidbook.viewport.width = 'device-width';
this.updateWindow();
this.fluidbook.menu.resize(this.ww, this.hh);
},
- handleOrientation: function () {
+ handleOrientation: function (forceChange) {
var $this = this;
+ if (forceChange === undefined) {
+ forceChange = false;
+ }
var o = this.fluidbook.support.getOrientation();
var newo;
$('body').removeClass('portrait');
}
- console.log(newo);
- var changeOrientation = this.orientation !== newo;
+ var changeOrientation = forceChange || this.orientation !== newo;
var force = this.fluidbook.datas.mobileNavigationType != 'book';
- if (!force && this.orientation == newo) {
- return;
- }
+
this.orientation = newo;
$('body').addClass(this.orientation);