Merge pull request from Snuffleupagus/issue-3953

Fix issues with /FitR destinations
This commit is contained in:
Yury Delendik 2013-11-23 13:33:15 -08:00
commit 43db959367
2 changed files with 2 additions and 2 deletions

@ -371,7 +371,7 @@ var PageView = function pageView(container, id, scale,
width / CSS_UNITS;
heightScale = (PDFView.container.clientHeight - SCROLLBAR_PADDING) /
height / CSS_UNITS;
scale = Math.min(widthScale, heightScale);
scale = Math.min(Math.abs(widthScale), Math.abs(heightScale));
break;
default:
return;

@ -209,7 +209,7 @@ var PDFView = {
var number = parseFloat(value);
var scale;
if (number) {
if (number > 0) {
scale = number;
resetAutoSettings = true;
} else {