Skip to content

Commit

Permalink
Merge pull request #3193 from Snuffleupagus/issue3076
Browse files Browse the repository at this point in the history
Fixes issue 3076
  • Loading branch information
yurydelendik committed May 7, 2013
2 parents 5ffcc3c + 32f54c3 commit 5db963a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions web/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2261,10 +2261,16 @@ var PageView = function pageView(container, id, scale,
return;
}

if (scale && scale !== PDFView.currentScale)
if (scale && scale !== PDFView.currentScale) {
PDFView.parseScale(scale, true, true);
else if (PDFView.currentScale === UNKNOWN_SCALE)
} else if (PDFView.currentScale === UNKNOWN_SCALE) {
PDFView.parseScale(DEFAULT_SCALE, true, true);
}

if (scale === 'page-fit' && !dest[4]) {
scrollIntoView(div);
return;
}

var boundingRect = [
this.viewport.convertToViewportPoint(x, y),
Expand Down

0 comments on commit 5db963a

Please sign in to comment.