Update gutter value before placing flip areas
authorMichael Ang <mang@archive.org>
Wed, 2 Sep 2009 23:53:42 +0000 (23:53 +0000)
committerMichael Ang <mang@archive.org>
Wed, 2 Sep 2009 23:53:42 +0000 (23:53 +0000)
GnuBook/GnuBook.js

index eab6ace..f9fd240 100644 (file)
@@ -1566,6 +1566,7 @@ GnuBook.prototype.flipLeftToRight = function(newIndexL, newIndexR) {
             self.twoPage.currentIndexR = newIndexR;
             self.twoPage.scaledWL = newWidthL;
             self.twoPage.scaledWR = newWidthR;
+            self.twoPage.gutter = gutter;
             self.firstIndex = self.twoPage.currentIndexL;
             self.displayedIndices = [newIndexL, newIndexR];
             self.setClickHandlers();
@@ -1695,6 +1696,7 @@ GnuBook.prototype.flipRightToLeft = function(newIndexL, newIndexR) {
             self.twoPage.currentIndexR = newIndexR;
             self.twoPage.scaledWL = newWidthL;
             self.twoPage.scaledWR = newWidthR;
+            self.twoPage.gutter = gutter;
 
             self.firstIndex = self.twoPage.currentIndexL;
             self.displayedIndices = [newIndexL, newIndexR];