diff options
author | bobzel <zzzman@gmail.com> | 2020-09-21 00:22:16 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-21 00:22:16 -0400 |
commit | 6fc12ef418f420087256a1a8463faac5dcce67c6 (patch) | |
tree | 2219e686ee581376ae085e47387ba556a6ba45ec /src/client/views/nodes/PDFBox.tsx | |
parent | e4ae6fa6df6bb0118f113bbdf3a40f768405f7b3 (diff) |
made curPage a playground field so that scroll positions aren't mirrored.
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r-- | src/client/views/nodes/PDFBox.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx index 756ff43f2..64e0eeb2c 100644 --- a/src/client/views/nodes/PDFBox.tsx +++ b/src/client/views/nodes/PDFBox.tsx @@ -246,6 +246,7 @@ export class PDFBox extends ViewBoxAnnotatableComponent<FieldViewProps, PdfDocum isChildActive = (outsideReaction?: boolean) => this._isChildActive; @computed get renderPdfView() { + TraceMobx(); const pdfUrl = Cast(this.dataDoc[this.props.fieldKey], PdfField); return <div className={"pdfBox"} onContextMenu={this.specificContextMenu} style={{ height: this.props.Document._scrollTop && !this.Document._fitWidth && (window.screen.width > 600) ? NumCast(this.Document._height) * this.props.PanelWidth() / NumCast(this.Document._width) : undefined }}> <div className="pdfBox-background"></div> |