]> git.parisson.com Git - pdf.js.git/commitdiff
Fixing setting of auto-zoom value in bookmarks (#938)
authornotmasteryet <async.processingjs@yahoo.com>
Thu, 15 Dec 2011 00:44:35 +0000 (18:44 -0600)
committernotmasteryet <async.processingjs@yahoo.com>
Thu, 15 Dec 2011 00:44:35 +0000 (18:44 -0600)
web/viewer.js

index bdcac09d53831b34968ee7a815266e54fe62ba83..daf0174ab329e94f1e625cc08507e3b5c59565ff 100644 (file)
@@ -537,7 +537,7 @@ var PageView = function pageView(container, content, id, pageWidth, pageHeight,
       ];
 
       if (scale && scale !== PDFView.currentScale)
-        PDFView.setScale(scale, true);
+        PDFView.parseScale(scale, true);
 
       setTimeout(function pageViewScrollIntoViewRelayout() {
         // letting page to re-layout before scrolling