1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

fix chapter end left position

This commit is contained in:
Fred Chasen 2013-01-23 09:59:03 -08:00
parent 0690ad97d0
commit 868b057e02

View file

@ -143,8 +143,6 @@ FP.Chapter.prototype.calcPages = function(){
this.displayedPages = Math.ceil(this.totalWidth / this.spreadWidth);
//-- I work for Chrome
//this.iframe.contentDocument.body.scrollLeft = 200;
@ -188,8 +186,7 @@ FP.Chapter.prototype.prevPage = function(){
FP.Chapter.prototype.chapterEnd = function(){
this.chapterPos = this.displayedPages;
this.leftPos = this.totalWidth - this.colWidth;
this.leftPos = this.spreadWidth * (this.displayedPages - 1);//this.totalWidth - this.colWidth;
this.setLeft(this.leftPos);
}
@ -218,7 +215,6 @@ FP.Chapter.prototype.replaceLinks = function(callback){
}.bind(this));
}