this.origin[1] = '0%';
}
- try {
- this.fluidbook.loader.renderTextsCanvas();
- } catch (e) {
-
- }
-
var tabsScale = this.fluidbook.tabs.guessBookScale(this.bookScale, this.aw, this.fww);
this.bookScale *= tabsScale;
-
- this.resizeBook();
-
this.fw = this.bookScale * this.fww;
this.fh = this.bookScale * this.fhh;
- console.log(this.fw, this.fh);
-
- // $("#fluidbook,#shadow").transform({
- // scale: [this.bookScale, this.bookScale],
- // origin: origin
- // });
+ this.resizeBook();
// Hack to fix #2552
if (this.fluidbook.support.iOS && this.fluidbook.pagetransitions.getTransitionType() === 'flip3d') {
// $('#fluidbook').css('transform', 'translate3d(0,0,-1px) scale(' + this.bookScale + ',' + this.bookScale + ')');
}
- // var top = marginTop + (ah - fhh) / 2;
- //
- // var left = marginLeft + (aw - fww) / 2;
- // if (this.fluidbook.mobilefirst.enabled) {
- // top = marginTop;
- // }
- // $("#fluidbook,#shadow").css({
- // top: top,
- // left: left,
- // width: fww,
- // height: fhh
- // });
-
-
if (this.fluidbook.mobilefirst.enabled) {
this.fluidbook.mobilefirst.resize();
}
$(p).find('.doublePage').css(css);
this.resizeLinks();
+ this.fluidbook.loader.renderTextsCanvas();
},
resizeLinks: function () {
scale: [this.bookScale, this.bookScale],
origin: this.origin,
}).css({
- left: this._left(this.fww + (24 * this.bookScale)),
+ left: this._left(this.fww),
top: this._top(this.fhh),
});
},
}
},
getScreenFluidbookWidth: function () {
- return $("#fluidbook").outerWidth() * fluidbook.resize.bookScale;
+ return $("#fluidbook").outerWidth();
},
resizeHorizontalNav: function () {
background-color: @pages-background;
img {
- width: 100%;
+ width: ~"calc(100% + 1px)";
height: 100%;
}
}
position: absolute;
top: 0px;
left: 0px;
- width: unit(@shadow-width-left+@shadow-width-right, px);
+ width: unit(@book-page-width*2, px);
height: unit(@book-page-height, px);
pointer-events: none;
mix-blend-mode: multiply;