]> git.parisson.com Git - pdf.js.git/commitdiff
fixed thumbnails
authorArtur Adib <arturadib@gmail.com>
Wed, 18 Apr 2012 19:31:42 +0000 (15:31 -0400)
committerArtur Adib <arturadib@gmail.com>
Wed, 18 Apr 2012 19:31:42 +0000 (15:31 -0400)
web/viewer.js

index fdf8f9fd47af53ce075b6a3874dae238d1dab384..838b3dfb9cec35f353d5bd6ea85ab2600f6fa017 100644 (file)
@@ -1036,8 +1036,8 @@ var ThumbnailView = function thumbnailView(container, pdfPage, id) {
   };
 
   var viewport = pdfPage.getViewport(1);
-  var pageWidth = viewport.width;
-  var pageHeight = viewport.height;
+  var pageWidth = this.width = viewport.width;
+  var pageHeight = this.height = viewport.height;
   var pageRatio = pageWidth / pageHeight;
   this.id = id;