1
0
Fork 0
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:
Jonas Jenwald 2013-10-16 00:26:42 +02:00
parent 7ad19c3355
commit 1f4d85db37
3 changed files with 63 additions and 62 deletions

View file

@ -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]) {