diff options
| author | bobzel <zzzman@gmail.com> | 2020-08-11 08:47:41 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-08-11 08:47:41 -0400 |
| commit | fd5d732f105cdcd8fd9ec0a28e7e833886cd5f81 (patch) | |
| tree | c53d9a22bb5427fbfefa7abcceba960fa7be9a1d /src/client/views/nodes/PDFBox.tsx | |
| parent | 769588ee0f3471e4f576dd1627ed6c11ecfbeee0 (diff) | |
| parent | 629537c4f96262714b9025c10de12deae02902dc (diff) | |
Merge branch 'master' into schema_search
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
| -rw-r--r-- | src/client/views/nodes/PDFBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx index 323da1233..2fdb87e63 100644 --- a/src/client/views/nodes/PDFBox.tsx +++ b/src/client/views/nodes/PDFBox.tsx @@ -91,7 +91,7 @@ export class PDFBox extends ViewBoxAnnotatableComponent<FieldViewProps, PdfDocum loaded = (nw: number, nh: number, np: number) => { this.dataDoc[this.props.fieldKey + "-numPages"] = np; - this.dataDoc[this.props.fieldKey + "-nativeWidth"] = this.Document._nativeWidth = nw * 96 / 72; + this.dataDoc[this.props.fieldKey + "-nativeWidth"] = this.Document._nativeWidth = Math.max(NumCast(this.dataDoc[this.props.fieldKey + "-nativeWidth"]), nw * 96 / 72); this.dataDoc[this.props.fieldKey + "-nativeHeight"] = this.Document._nativeHeight = nh * 96 / 72; !this.Document._fitWidth && (this.Document._height = this.Document[WidthSym]() * (nh / nw)); } |
