mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-29 07:37:57 +02:00
Inline setScale in parseScale
This commit is contained in:
parent
7ad19c3355
commit
1f4d85db37
3 changed files with 63 additions and 62 deletions
|
@ -330,9 +330,9 @@ var PageView = function pageView(container, id, scale,
|
|||
}
|
||||
|
||||
if (scale && scale !== PDFView.currentScale) {
|
||||
PDFView.parseScale(scale, true, true);
|
||||
PDFView.setScale(scale, true, true);
|
||||
} else if (PDFView.currentScale === UNKNOWN_SCALE) {
|
||||
PDFView.parseScale(DEFAULT_SCALE, true, true);
|
||||
PDFView.setScale(DEFAULT_SCALE, true, true);
|
||||
}
|
||||
|
||||
if (scale === 'page-fit' && !dest[4]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue