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;