mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
commit
5db963abf4
1 changed files with 8 additions and 2 deletions
|
@ -2261,10 +2261,16 @@ var PageView = function pageView(container, id, scale,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (scale && scale !== PDFView.currentScale)
|
if (scale && scale !== PDFView.currentScale) {
|
||||||
PDFView.parseScale(scale, true, true);
|
PDFView.parseScale(scale, true, true);
|
||||||
else if (PDFView.currentScale === UNKNOWN_SCALE)
|
} else if (PDFView.currentScale === UNKNOWN_SCALE) {
|
||||||
PDFView.parseScale(DEFAULT_SCALE, true, true);
|
PDFView.parseScale(DEFAULT_SCALE, true, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (scale === 'page-fit' && !dest[4]) {
|
||||||
|
scrollIntoView(div);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var boundingRect = [
|
var boundingRect = [
|
||||||
this.viewport.convertToViewportPoint(x, y),
|
this.viewport.convertToViewportPoint(x, y),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue