Browse Source

Fixes issue 3076

Jonas 12 years ago
parent
commit
32f54c3272
  1. 10
      web/viewer.js

10
web/viewer.js

@ -2236,10 +2236,16 @@ var PageView = function pageView(container, id, scale, @@ -2236,10 +2236,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),

Loading…
Cancel
Save