Fix issues with /FitR destinations
This commit is contained in:
parent
1fc11027ec
commit
7542d50167
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user