aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/PDFBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-12-13 20:49:48 -0500
committerbobzel <zzzman@gmail.com>2020-12-13 20:49:48 -0500
commitf9f0d6ca06e850e0ea68d7b7b701de46d9449169 (patch)
treeae7c6eeb2f4ad37c1ef0b5235952d9da6ece308e /src/client/views/nodes/PDFBox.tsx
parent9af7025b7c9e6181843594f5179166556041234c (diff)
trying to fix PDFs for fitWidth and otherwise in ContentFitting and CollectionFreeFormDoc containers.
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r--src/client/views/nodes/PDFBox.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx
index 262e61c9b..ec9a75302 100644
--- a/src/client/views/nodes/PDFBox.tsx
+++ b/src/client/views/nodes/PDFBox.tsx
@@ -192,7 +192,6 @@ export class PDFBox extends ViewBoxAnnotatableComponent<FieldViewProps, PdfDocum
</div>;
}
- contentScaling = () => this.props.scaling?.() || 1;
isChildActive = (outsideReaction?: boolean) => this._isChildActive;
@computed get renderPdfView() {
TraceMobx();
@@ -209,7 +208,7 @@ export class PDFBox extends ViewBoxAnnotatableComponent<FieldViewProps, PdfDocum
whenActiveChanged={this.whenActiveChanged}
isChildActive={this.isChildActive}
startupLive={true}
- ContentScaling={this.contentScaling}
+ ContentScaling={this.props.scaling}
/>
{this.settingsPanel()}
</div>;