From 72fd078fa1ffb65439d6f8a151b580e5966d1359 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Tue, 17 Apr 2012 15:53:17 -0500 Subject: [PATCH] Fixes page-width mode --- web/viewer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/viewer.js b/web/viewer.js index 3233371cc..97178f0e9 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -247,9 +247,9 @@ var PDFView = { var currentPage = this.pages[this.page - 1]; var pageWidthScale = (window.innerWidth - kScrollbarPadding) / - currentPage.width / kCssUnits; + currentPage.width * currentPage.scale / kCssUnits; var pageHeightScale = (window.innerHeight - kScrollbarPadding) / - currentPage.height / kCssUnits; + currentPage.height * currentPage.scale / kCssUnits; if ('page-width' == value) this.setScale(pageWidthScale, resetAutoSettings); if ('page-height' == value)