From 17be523eeb17bc674b9ff49d1c9ad4b9f7114c4a Mon Sep 17 00:00:00 2001
From: Artur Adib <arturadib@gmail.com>
Date: Wed, 18 Apr 2012 15:31:42 -0400
Subject: [PATCH] fixed thumbnails

---
 web/viewer.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/web/viewer.js b/web/viewer.js
index fdf8f9fd4..838b3dfb9 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -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;