diff options
author | bobzel <zzzman@gmail.com> | 2020-08-10 21:45:27 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-08-10 21:45:27 -0400 |
commit | 6f43b77ee032d8c5dcd8424aa17ee8bac22ae1ff (patch) | |
tree | ecc0684767b4ac1319105e4c836c2cd92010e5c0 /src/client/views/nodes/PDFBox.tsx | |
parent | 4f1e459051b069dd1500df4c850deb3e67c01e16 (diff) |
fixed ctrl-drag for text to scale properly. added horizontal resize for web pages to add white space.
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)); } |