From 6867083c07cca229c81e5573e44e67efd6476b66 Mon Sep 17 00:00:00 2001 From: Jonas Date: Mon, 24 Jun 2013 00:39:28 +0200 Subject: [PATCH] Fix typo causing destinations using '/FitR' to fail --- web/viewer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/viewer.js b/web/viewer.js index 584f6820d..62848292c 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -2022,9 +2022,9 @@ var PageView = function pageView(container, id, scale, y = dest[3]; width = dest[4] - x; height = dest[5] - y; - widthScale = (this.container.clientWidth - SCROLLBAR_PADDING) / + widthScale = (PDFView.container.clientWidth - SCROLLBAR_PADDING) / width / CSS_UNITS; - heightScale = (this.container.clientHeight - SCROLLBAR_PADDING) / + heightScale = (PDFView.container.clientHeight - SCROLLBAR_PADDING) / height / CSS_UNITS; scale = Math.min(widthScale, heightScale); break;