Fixed issue #67: zooming in in the multi-page viewer makes pages disappear.
This commit is contained in:
parent
ed306568d9
commit
745379a1ae
@ -132,10 +132,6 @@ var PDFViewer = {
|
|||||||
for (i = 1; i <= PDFViewer.numberOfPages; i++) {
|
for (i = 1; i <= PDFViewer.numberOfPages; i++) {
|
||||||
PDFViewer.createPage(i);
|
PDFViewer.createPage(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PDFViewer.numberOfPages > 0) {
|
|
||||||
PDFViewer.drawPage(1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < PDFViewer.scaleSelect.childNodes; i++) {
|
for (i = 0; i < PDFViewer.scaleSelect.childNodes; i++) {
|
||||||
@ -153,6 +149,12 @@ var PDFViewer = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PDFViewer.scaleSelect.value = Math.floor(PDFViewer.scale * 100) + '%';
|
PDFViewer.scaleSelect.value = Math.floor(PDFViewer.scale * 100) + '%';
|
||||||
|
|
||||||
|
// Clear the array of the last pages drawn to force a redraw.
|
||||||
|
PDFViewer.lastPagesDrawn = [];
|
||||||
|
|
||||||
|
// Jump the scroll position to the correct page.
|
||||||
|
PDFViewer.goToPage(PDFViewer.pageNumber);
|
||||||
},
|
},
|
||||||
|
|
||||||
goToPage: function(num) {
|
goToPage: function(num) {
|
||||||
|
Loading…
Reference in New Issue
Block a user