projects
/
bookreader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8a6d3aa
)
Normalize whitespace
author
Michael Ang
<mang@archive.org>
Tue, 9 Mar 2010 23:57:27 +0000
(23:57 +0000)
committer
Michael Ang
<mang@archive.org>
Tue, 9 Mar 2010 23:57:27 +0000
(23:57 +0000)
BookReader/BookReader.js
patch
|
blob
|
history
diff --git
a/BookReader/BookReader.js
b/BookReader/BookReader.js
index
e581dda
..
158e053
100644
(file)
--- a/
BookReader/BookReader.js
+++ b/
BookReader/BookReader.js
@@
-613,7
+613,7
@@
BookReader.prototype.drawLeafsThumbnail = function() {
// reset the bottom position based on thumbnails
$('#BRpageview').height(bottomPos);
// reset the bottom position based on thumbnails
$('#BRpageview').height(bottomPos);
- var pageViewBuffer = Math.floor(($('#BRcontainer').attr('scrollWidth') - maxRight) / 2) - 14;
+ var pageViewBuffer = Math.floor(($('#BRcontainer').attr('scrollWidth') - maxRight) / 2) - 14;
var scrollTop = $('#BRcontainer').attr('scrollTop');
var scrollBottom = scrollTop + $('#BRcontainer').height();
var scrollTop = $('#BRcontainer').attr('scrollTop');
var scrollBottom = scrollTop + $('#BRcontainer').height();
@@
-677,7
+677,7
@@
BookReader.prototype.drawLeafsThumbnail = function() {
div = document.createElement("div");
div.id = 'pagediv'+leaf;
div.style.position = "absolute";
div = document.createElement("div");
div.id = 'pagediv'+leaf;
div.style.position = "absolute";
- div.className = "BRpagedivthumb";
+ div.className = "BRpagedivthumb";
left += this.padding;
$(div).css('top', leafTop + 'px');
left += this.padding;
$(div).css('top', leafTop + 'px');
@@
-1100,7
+1100,7
@@
BookReader.prototype.jumpToIndex = function(index, pageX, pageY) {
this.flipFwdToIndex(index);
}
this.flipFwdToIndex(index);
}
- } else if (3 == this.mode)
{
+ } else if (3 == this.mode)
{
var viewWidth = $('#BRcontainer').attr('scrollWidth') - 20; // width minus buffer
var i;
var leafWidth = 0;
var viewWidth = $('#BRcontainer').attr('scrollWidth') - 20; // width minus buffer
var i;
var leafWidth = 0;
@@
-1252,7
+1252,7
@@
BookReader.prototype.prepareThumbnailView = function() {
this.resizePageView();
this.resizePageView();
-
this.displayedRows = [];
+ this.displayedRows = [];
this.drawLeafsThumbnail();
// Bind mouse handlers
this.drawLeafsThumbnail();
// Bind mouse handlers