diff options
author | bobzel <zzzman@gmail.com> | 2020-09-18 23:07:08 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-18 23:07:08 -0400 |
commit | 7a12eccf31f0a04800b0ddd47cd18fcbcfcadb93 (patch) | |
tree | dcc10659a84f30b0570effe2defe3db6f8fd3764 /src/client/views/nodes/PDFBox.tsx | |
parent | 2e7078b74e19c2f6958b92a3f53c195d0dd9e223 (diff) |
change imageBox to choose img size based on PanelWidth, not document width. fixed textboxcommetn date display
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r-- | src/client/views/nodes/PDFBox.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx index 266017b5b..b199111f9 100644 --- a/src/client/views/nodes/PDFBox.tsx +++ b/src/client/views/nodes/PDFBox.tsx @@ -22,6 +22,7 @@ import "./PDFBox.scss"; import React = require("react"); import { documentSchema } from '../../../fields/documentSchemas'; import { CollectionViewType } from '../collections/CollectionView'; +import { TraceMobx } from '../../../fields/util'; type PdfDocument = makeInterface<[typeof documentSchema, typeof panZoomSchema, typeof pageSchema]>; const PdfDocument = makeInterface(documentSchema, panZoomSchema, pageSchema); @@ -264,6 +265,7 @@ export class PDFBox extends ViewBoxAnnotatableComponent<FieldViewProps, PdfDocum _pdfjsRequested = false; render() { + TraceMobx(); const pdfUrl = Cast(this.dataDoc[this.props.fieldKey], PdfField, null); if (this.props.isSelected() || (this.props.active() && this.props.renderDepth === 0) || this.props.Document._scrollY !== undefined) this._everActive = true; if (pdfUrl && this._everActive) { |