fullscreen = true;
}
break;
+ case 'notes':
+ fullscreen = true;
+ break;
case 'share':
w = 200;
break;
});
$(this.fluidbook).on('fluidbook.page.change.start', function () {
$this.clearNotes();
+ $this.resize();
});
$(this.fluidbook).on('fluidbook.page.change.end', function () {
- $this.initNotesFromStorage();
+ setTimeout(function () {
+ $this.resize();
+ $this.initNotesFromStorage();
+ }, 1000);
});
+
$(document).on('click', '.notes-toggle', function () {
$this.toggleNotes();
return false;
}
},
resize: function () {
+ this.fluidbook.resize.updateFluidbookRect();
+
var maxx = this.fluidbook.resize.fluidbookrect.width;
var maxy = this.fluidbook.resize.fluidbookrect.height;
var minx = this.fluidbook.resize.fluidbookrect.x;
$(move).removeClass('animate');
}
+ var $this=this;
var delay = this.fluidbook.support.android ? this.fluidbook.settings.mobileTransitionDuration * 1000 : 10;
setTimeout(function () {
move.transform({translateX: left + 'px'});
+ $this.fluidbook.resize.updateFluidbookRect();
}, delay);
},
this.refw = fw;
this.refh = fh;
- this.fluidbookrect = $("#fluidbook").get(0).getBoundingClientRect();
+ this.updateFluidbookRect();
if (this.fluidbook.help) {
this.fluidbook.help.resize(this.ww, this.hh, interfaceScale, navScale);
};
+
if (this.fluidbook.interface.arrowsEnabled()) {
try {
data.arrowLeftRect = $("#prev-arrows").get(0).getBoundingClientRect();
$(this.fluidbook).trigger('fluidbook.resize', data);
},
+
+ updateFluidbookRect: function () {
+ this.fluidbookrect = $("#fluidbook").get(0).getBoundingClientRect();
+ },
+
resizeNav: function (interfaceScale) {
var $this = this;
if (this.fluidbook.interface.arrowsEnabled()) {