1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 07:08:08 +02:00

Merge pull request #1023 from jviereck/viewer_default_fix

Reset scale value on opening new file
This commit is contained in:
notmasteryet 2012-01-04 04:56:04 -08:00
commit ce337fb2b3

View file

@ -437,6 +437,10 @@ var PDFView = {
this.switchSidebarView('outline');
}
// Reset the current scale, as otherwise the page's scale might not get
// updated if the zoom level stayed the same.
this.currentScale = 0;
this.currentScaleValue = null;
if (this.initialBookmark) {
this.setHash(this.initialBookmark);
this.initialBookmark = null;