Fix issues with /FitR destinations

This commit is contained in:
Jonas Jenwald 2013-11-23 18:27:03 +01:00
parent 1fc11027ec
commit 7542d50167
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

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