mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
Fixes 'currentPage is undefined' viewer error
This commit is contained in:
parent
2f8421ca3e
commit
209ee959db
1 changed files with 3 additions and 0 deletions
|
@ -713,6 +713,9 @@ var PDFView = {
|
|||
|
||||
var container = this.container;
|
||||
var currentPage = this.pages[this.page - 1];
|
||||
if (!currentPage) {
|
||||
return;
|
||||
}
|
||||
|
||||
var pageWidthScale = (container.clientWidth - kScrollbarPadding) /
|
||||
currentPage.width * currentPage.scale / kCssUnits;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue