mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fixing zoom and rotate issues
This commit is contained in:
parent
82dd32e807
commit
2f4423cffb
2 changed files with 15 additions and 3 deletions
|
@ -19,7 +19,7 @@
|
|||
return this.page.view;
|
||||
},
|
||||
getViewport: function(scale, rotate) {
|
||||
if (arguments < 2)
|
||||
if (arguments.length < 2)
|
||||
rotate = this.rotate;
|
||||
return new PDFJS.PageViewport(this.view, scale, rotate, 0, 0);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue