1
0
Fork 0
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:
Yury Delendik 2012-04-11 09:42:41 -07:00
parent 82dd32e807
commit 2f4423cffb
2 changed files with 15 additions and 3 deletions

View file

@ -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);
},