Autofit fix
authorMichael Ang <mang@archive.org>
Thu, 30 Sep 2010 19:55:26 +0000 (19:55 +0000)
committerMichael Ang <mang@archive.org>
Thu, 30 Sep 2010 19:55:26 +0000 (19:55 +0000)
BookReader/BookReader.js

index 2e78081..c8b36de 100644 (file)
@@ -105,7 +105,7 @@ function BookReader() {
         coverInternalPadding: 0, // Width of cover
         coverExternalPadding: 0, // Padding outside of cover
         bookSpineDivWidth: 0,    // Width of book spine  $$$ consider sizing based on book length
-        autofit: true
+        autofit: 'auto'
     };
     
     return this;
@@ -1286,7 +1286,7 @@ BookReader.prototype.switchMode = function(mode) {
         this.reduce = this.quantizeReduce(this.reduce);
     } else {
         // $$$ why don't we save autofit?
-        this.twoPage.autofit = null; // Take zoom level from other mode
+        // this.twoPage.autofit = null; // Take zoom level from other mode
         this.twoPageCalculateReductionFactors();
         this.reduce = this.quantizeReduce(this.reduce, this.twoPage.reductionFactors);
         $('button.thumb').show();