Merge pull request #3955 from Snuffleupagus/issue-3953
Fix issues with /FitR destinations
This commit is contained in:
commit
43db959367
@ -371,7 +371,7 @@ var PageView = function pageView(container, id, scale,
|
|||||||
width / CSS_UNITS;
|
width / CSS_UNITS;
|
||||||
heightScale = (PDFView.container.clientHeight - SCROLLBAR_PADDING) /
|
heightScale = (PDFView.container.clientHeight - SCROLLBAR_PADDING) /
|
||||||
height / CSS_UNITS;
|
height / CSS_UNITS;
|
||||||
scale = Math.min(widthScale, heightScale);
|
scale = Math.min(Math.abs(widthScale), Math.abs(heightScale));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
|
@ -209,7 +209,7 @@ var PDFView = {
|
|||||||
var number = parseFloat(value);
|
var number = parseFloat(value);
|
||||||
var scale;
|
var scale;
|
||||||
|
|
||||||
if (number) {
|
if (number > 0) {
|
||||||
scale = number;
|
scale = number;
|
||||||
resetAutoSettings = true;
|
resetAutoSettings = true;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user