mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Fix typo causing destinations using '/FitR' to fail
This commit is contained in:
parent
004bd848c8
commit
6867083c07
1 changed files with 2 additions and 2 deletions
|
@ -2022,9 +2022,9 @@ var PageView = function pageView(container, id, scale,
|
|||
y = dest[3];
|
||||
width = dest[4] - x;
|
||||
height = dest[5] - y;
|
||||
widthScale = (this.container.clientWidth - SCROLLBAR_PADDING) /
|
||||
widthScale = (PDFView.container.clientWidth - SCROLLBAR_PADDING) /
|
||||
width / CSS_UNITS;
|
||||
heightScale = (this.container.clientHeight - SCROLLBAR_PADDING) /
|
||||
heightScale = (PDFView.container.clientHeight - SCROLLBAR_PADDING) /
|
||||
height / CSS_UNITS;
|
||||
scale = Math.min(widthScale, heightScale);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue