Real page distance between two pages is 10

This commit is contained in:
notmasteryet 2011-06-30 21:12:42 -05:00
parent 30bf683896
commit eedaa159a9

View File

@ -43,12 +43,12 @@ var PDFViewer = {
lastPagesDrawn: [],
visiblePages: function() {
const pageBottomMargin = 20;
const pageBottomMargin = 10;
var windowTop = window.pageYOffset;
var windowBottom = window.pageYOffset + window.innerHeight;
var pageHeight, page;
var i, n = PDFViewer.numberOfPages, currentHeight = 0;
var i, n = PDFViewer.numberOfPages, currentHeight = pageBottomMargin;
for (i = 1; i <= n; i++) {
var page = PDFViewer.pdf.getPage(i);
pageHeight = PDFViewer.pageHeight(page) + pageBottomMargin;