this.shadeRight = this.loadImage('images/shadows/pages/right.png');
},
+ getPageDimensions: function (page) {
+ var dim = this.fluidbook.datas.pagesDimensions[page];
+ return {width: dim[0], height: dim[1]};
+ },
+
getVersionToLoad: function (page) {
if (this.fluidbook.vectorTexts) {
if (this.fluidbook.datas.vectorPages.indexOf(page) >= 0) {
},
beforeTransition: function (page) {
+ var dimensions = this.fluidbook.loader.getPageDimensions(page);
+ $("#nextDoublePage .page, #nextDoublePage").css({
+ height: dimensions.height,
+ maxHeight: dimensions.height
+ });
+
TweenLite.to("#scroll", this.fluidbook.pagetransitions.getTransitionDuration(page), {scrollTo: 0});
},
$('#pages .mf-nav').remove();
$("#pages").append(this.getFooterNavigation(page));
this.fluidbook.resize.resize();
+ var $this=this;
+ setTimeout(function(){
+ this.fluidbook.resize.resize();
+ },1000);
},
resize: function () {
- var h = $(".doublePage").outerHeight();
- $('#pages .mf-nav').css('top', h);
- h += $("#pages .mf-nav").outerHeight();
+ var bh = $("#currentDoublePage").outerHeight();
+ $('#pages .mf-nav').css('top', bh);
+ var h = bh+$("#pages .mf-nav").outerHeight();
+ $("#links,#searchHighlights").css({height:bh});
$("#pages,#fluidbook").css({height: h});
$("#pages").css('maxHeight', h);
},