projects
/
bookreader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8a25b95
)
Better sizing for cover in right to left flip. See https://bugs.edge.launchpad.net...
author
Michael Ang
<mang@archive.org>
Mon, 17 Aug 2009 22:37:49 +0000
(22:37 +0000)
committer
Michael Ang
<mang@archive.org>
Mon, 17 Aug 2009 22:37:49 +0000
(22:37 +0000)
GnuBook/GnuBook.js
patch
|
blob
|
history
diff --git
a/GnuBook/GnuBook.js
b/GnuBook/GnuBook.js
index
d72f248
..
3c15e3b
100644
(file)
--- a/
GnuBook/GnuBook.js
+++ b/
GnuBook/GnuBook.js
@@
-1481,10
+1481,9
@@
GnuBook.prototype.flipLeftToRight = function(newIndexL, newIndexR) {
left: gutter-newWidthL-newLeafEdgeWidthL+'px'
});
left: gutter-newWidthL-newLeafEdgeWidthL+'px'
});
- //
XXX set values in this.twoPage here(?)
+ //
Resizes the brown border div
$(self.twoPage.coverDiv).css({
$(self.twoPage.coverDiv).css({
- // Resizes the brown border div
- width: newWidthL+newWidthR+self.twoPage.edgeWidth+20+'px',
+ width: self.twoPageCoverWidth(newWidthL+newWidthR)+'px',
left: gutter-newWidthL-newLeafEdgeWidthL-self.twoPage.coverInternalPadding+'px'
});
left: gutter-newWidthL-newLeafEdgeWidthL-self.twoPage.coverInternalPadding+'px'
});
@@
-1609,7
+1608,7
@@
GnuBook.prototype.flipRightToLeft = function(newIndexL, newIndexR) {
// Resizes the book cover
$(self.twoPage.coverDiv).css({
width: self.twoPageCoverWidth(newWidthL+newWidthR)+'px',
// Resizes the book cover
$(self.twoPage.coverDiv).css({
width: self.twoPageCoverWidth(newWidthL+newWidthR)+'px',
- left:
self.coverExternalPadding+
'px'
+ left:
gutter - newWidthL - newLeafEdgeWidthL - self.coverInternalPadding +
'px'
});
$(self.leafEdgeTmp).remove();
});
$(self.leafEdgeTmp).remove();