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

fixed endnotes bounding rects

This commit is contained in:
Fred Chasen 2013-04-01 10:46:08 -07:00
parent 2d81246827
commit b2c7b76b27
10 changed files with 85 additions and 41 deletions

View file

@ -136,9 +136,29 @@ FP.Chapter.prototype.formatSpread = function(){
//-- Go to current page after resize
if(this.OldcolWidth){
this.setLeft((this.chapterPos - 1 ) * this.spreadWidth);
this.fixedLayout();
}
}
FP.Chapter.prototype.fixedLayout = function(){
this.paginated = false;
console.log("off")
this.setLeft(0);
this.bodyEl.style.width = this.elWidth;
//-- Adjust height
this.bodyEl.style.height = "auto";
//-- Remove columns
this.bodyEl.style[FP.core.columnWidth] = "auto";
//-- Scroll
this.bodyEl.style.overflow = "auto";
this.displayedPages = 1;
}
FP.Chapter.prototype.goToChapterEnd = function(){
this.chapterEnd();
}