From 496e598813b1ab1e567d47d299d672a4963d2ee5 Mon Sep 17 00:00:00 2001 From: Julian Viereck Date: Wed, 4 Jan 2012 09:24:09 +0100 Subject: [PATCH] Reset scale value on opening new file --- web/viewer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/viewer.js b/web/viewer.js index 1c3d9c79c..f561ed12e 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -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;