Fix typo
authorMichael Ang <mang@archive.org>
Mon, 17 Aug 2009 23:30:22 +0000 (23:30 +0000)
committerMichael Ang <mang@archive.org>
Mon, 17 Aug 2009 23:30:22 +0000 (23:30 +0000)
GnuBook/GnuBook.js

index 1c9987c..607c0b4 100644 (file)
@@ -1570,7 +1570,7 @@ GnuBook.prototype.flipRightToLeft = function(newIndexL, newIndexR) {
     var currWidthR = this.getPageWidth2UP(this.twoPage.currentIndexR);
     var newWidthL = this.getPageWidth2UP(newIndexL);
     var newWidthR = this.getPageWidth2UP(newIndexR);
-
+    
     $(this.leafEdgeR).css({width: newLeafEdgeWidthR+'px', left: gutter+newWidthR+'px' });
 
     var self = this; // closure-tastic!
@@ -1593,7 +1593,7 @@ GnuBook.prototype.flipRightToLeft = function(newIndexL, newIndexR) {
             // Resizes the book cover
             $(self.twoPage.coverDiv).css({
                 width: self.twoPageCoverWidth(newWidthL+newWidthR)+'px',
-                left: gutter - newWidthL - newLeafEdgeWidthL - self.coverInternalPadding + 'px'
+                left: gutter - newWidthL - newLeafEdgeWidthL - self.twoPage.coverInternalPadding + 'px'
             });
             
             $(self.leafEdgeTmp).remove();