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

added ability to change font size. todo: refresh on select newfont, better way to hide/show settings

This commit is contained in:
krushton 2013-02-04 11:39:25 -08:00
parent 44b7b35ba0
commit a507121b51
5 changed files with 95 additions and 1 deletions

View file

@ -69,6 +69,7 @@ FP.Chapter.prototype.error = function(err){
}
FP.Chapter.prototype.formatSpread = function(){
var divisor = 2,
cutoff = 800;
@ -100,6 +101,7 @@ FP.Chapter.prototype.formatSpread = function(){
this.spreadWidth = (this.colWidth + this.gap) * divisor;
this.bodyEl.style.fontSize = localStorage.getItem("fontSize") || "medium";
//-- Clear Margins
this.bodyEl.style.visibility = "hidden";
this.bodyEl.style.margin = "0";