}
var fw = $("#fluidbook").get(0).getBoundingClientRect();
+ var left = (this.pw - fw.width) / 2;
- this.jcontainer.css({left: fw.left, width: fw.width, height: this.ph});
- this.jcontainer.find('canvas').css({left: -fw.left, width: this.pw, height: this.ph});
+ this.jcontainer.css({left: left, width: fw.width, height: this.ph});
+ this.jcontainer.find('canvas').css({left: -left, width: this.pw, height: this.ph});
if (null !== THREE) {
this.renderer.setSize(this.pw, this.ph);
this.guessCameraZoom();
if (null === THREE) {
return;
}
- if (this._progressAnimation != 0 && this._progressAnimation != 1) {
+ if (this._progressAnimation !== 0 && this._progressAnimation !== 1) {
return;
}