Browse Source

Reset scale value on opening new file

Julian Viereck 13 years ago
parent
commit
496e598813
  1. 4
      web/viewer.js

4
web/viewer.js

@ -437,6 +437,10 @@ var PDFView = {
this.switchSidebarView('outline'); 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) { if (this.initialBookmark) {
this.setHash(this.initialBookmark); this.setHash(this.initialBookmark);
this.initialBookmark = null; this.initialBookmark = null;

Loading…
Cancel
Save