Reset scale value on opening new file

This commit is contained in:
Julian Viereck 2012-01-04 09:24:09 +01:00
parent 219a60175c
commit 496e598813

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;