aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/PDFBox.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-10-20 15:15:15 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-10-20 15:15:15 -0400
commitf8da2a897de4d737ac3ea697b58d06bba5ce9f66 (patch)
tree30d8f26603a56b8a7dca736463abddc717871e0e /src/client/views/nodes/PDFBox.tsx
parentd8f12dade0d0b336e4328fa1f00a1a538588d34e (diff)
working version of updated template refactoring
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r--src/client/views/nodes/PDFBox.tsx8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx
index f3ea8328b..4513117b2 100644
--- a/src/client/views/nodes/PDFBox.tsx
+++ b/src/client/views/nodes/PDFBox.tsx
@@ -65,13 +65,11 @@ export class PDFBox extends DocAnnotatableComponent<FieldViewProps, PdfDocument>
}, { fireImmediately: true });
}
- get layoutDoc() { return Doc.Layout(this.props.Document); }
-
loaded = (nw: number, nh: number, np: number) => {
this.dataDoc.numPages = np;
- this.layoutDoc.nativeWidth = nw * 96 / 72;
- this.layoutDoc.nativeHeight = nh * 96 / 72;
- !this.layoutDoc.fitWidth && !this.layoutDoc.ignoreAspect && (this.layoutDoc.height = this.layoutDoc[WidthSym]() * (nh / nw));
+ this.Document.nativeWidth = nw * 96 / 72;
+ this.Document.nativeHeight = nh * 96 / 72;
+ !this.Document.fitWidth && !this.Document.ignoreAspect && (this.Document.height = this.Document[WidthSym]() * (nh / nw));
}
public search(string: string, fwd: boolean) { this._pdfViewer && this._pdfViewer.search(string, fwd); }