}
var left, top, iw, ih;
- if (this.fluidbook.datas.repeat == Fluidbook.NONE) {
+
+ if (this.fluidbook.datas.backgroundImageDimensions == undefined) {
+
+ } else if (this.fluidbook.datas.repeat == Fluidbook.NONE) {
iw = this.fluidbook.datas.backgroundImageDimensions.width;
ih = this.fluidbook.datas.backgroundImageDimensions.height;
if (d == undefined) {
d = 1;
}
+ $(this).trigger('fluidbook.page.change.start', [page]);
this.tooltip.hideTooltip();
$(".axis_y").removeClass('axis_y');
$(".axis_x").removeClass('axis_x');
$(window).scrollTop(0);
$(window).trigger('fluidbookresize');
- $(this.fluidbook).trigger('fluidbook.resize');
+ $(this.fluidbook).trigger('fluidbook.resize', {ww: this.ww, wh: this.wh, orientation: this.orientation, fluidbookrect: $("#fluidbook").get(0).getBoundingClientRect()});
},
resizeNav: function (interfaceScale) {
var topNext = (this.hh - (100 * interfaceScale)) / 2;
$(this.fluidbook).trigger('fluidbook.resize.beforeOrientationChange');
this.fluidbook.zoom.resetZoom();
this.fluidbook.pageTransition();
- $(this.fluidbook).trigger('fluidbook.resize.orientation');
+ $(this.fluidbook).trigger('fluidbook.resize.orientation', this.orientation);
}
},
getScreenFluidbookWidth: function () {