Merge pull request #134 from cgjones/issue-124

redraw on zoom changes r=gal
This commit is contained in:
Andreas Gal 2011-06-29 18:56:14 -07:00
commit 3f6fbf2f05

View File

@ -249,7 +249,10 @@ var PDFViewer = {
PDFViewer.pageNumber = num;
PDFViewer.pageNumberInput.value = PDFViewer.pageNumber;
PDFViewer.willJumpToPage = true;
if (document.location.hash.substr(1) == PDFViewer.pageNumber)
// Force a "scroll event" to redraw
setTimeout(window.onscroll, 0);
document.location.hash = PDFViewer.pageNumber;
PDFViewer.previousPageButton.className = (PDFViewer.pageNumber === 1) ? 'disabled' : '';