1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

added fileStore

This commit is contained in:
Fred Chasen 2013-03-28 15:56:19 -07:00
parent 5d7a15eabd
commit 2d81246827
25 changed files with 29 additions and 1399 deletions

View file

@ -105,10 +105,13 @@ FP.Chapter.prototype.formatSpread = function(){
this.spread = true; //-- Double Page
this.colWidth = Math.floor((this.elWidth - this.gap) / divisor);
/* - Was causing jumps, doesn't seem to be needed anymore
//-- Must be even for firefox
if(this.colWidth % 2 != 0){
this.colWidth -= 1;
}
*/
}
this.spreadWidth = (this.colWidth + this.gap) * divisor;
@ -132,9 +135,7 @@ FP.Chapter.prototype.formatSpread = function(){
//-- Go to current page after resize
if(this.OldcolWidth){
this.leftPos = (this.chapterPos - 1 ) * this.spreadWidth;
this.bodyEl.scrollLeft = this.leftPos;
//this.visible(true);
this.setLeft((this.chapterPos - 1 ) * this.spreadWidth);
}
}