projects
/
bookreader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2a200d
)
Ideal height should be based on container height
author
Michael Ang
<mang@archive.org>
Tue, 8 Sep 2009 22:55:11 +0000
(22:55 +0000)
committer
Michael Ang
<mang@archive.org>
Tue, 8 Sep 2009 22:55:11 +0000
(22:55 +0000)
GnuBook/GnuBook.js
patch
|
blob
|
history
diff --git
a/GnuBook/GnuBook.js
b/GnuBook/GnuBook.js
index
2260c4c
..
1596ed4
100644
(file)
--- a/
GnuBook/GnuBook.js
+++ b/
GnuBook/GnuBook.js
@@
-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);