diff options
author | bobzel <zzzman@gmail.com> | 2020-12-13 20:49:48 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-12-13 20:49:48 -0500 |
commit | f9f0d6ca06e850e0ea68d7b7b701de46d9449169 (patch) | |
tree | ae7c6eeb2f4ad37c1ef0b5235952d9da6ece308e /src/client/views/nodes/PDFBox.tsx | |
parent | 9af7025b7c9e6181843594f5179166556041234c (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.tsx | 3 |
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>; |