Ideal height should be based on container height
authorMichael Ang <mang@archive.org>
Tue, 8 Sep 2009 22:55:11 +0000 (22:55 +0000)
committerMichael Ang <mang@archive.org>
Tue, 8 Sep 2009 22:55:11 +0000 (22:55 +0000)
GnuBook/GnuBook.js

index 2260c4c..1596ed4 100644 (file)
@@ -1233,7 +1233,7 @@ GnuBook.prototype.getIdealSpreadSize = function(firstIndex, secondIndex) {
     
     ideal.width = ($('#GBcontainer').width() - widthOutsidePages) >> 1;
     ideal.width -= 10; // $$$ fudge factor
-    ideal.height = $('#GBcontainer').width() - heightOutsidePages;
+    ideal.height = $('#GBcontainer').height() - heightOutsidePages;
     ideal.height -= 20; // fudge factor
     //console.log('init idealWidth='+ideal.width+' idealHeight='+ideal.height + ' ratio='+ratio);