diff options
author | bobzel <zzzman@gmail.com> | 2020-12-13 14:25:33 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-12-13 14:25:33 -0500 |
commit | 898227ac1cecb3cd8d4be4ed00ab4190713f006a (patch) | |
tree | 4cd165cad87ea55c7022a06f2230d69b8770c7d0 /src/client/views/nodes/DocumentView.tsx | |
parent | 043fe3cb67003ddd0bc309b85e2b0dad353ed629 (diff) |
adding documentView as a fieldView prop to make contetnScaling available in PDFview
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index f766976d0..6ca3ffbee 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -52,6 +52,7 @@ export interface DocumentViewSharedProps { renderDepth: number; Document: Doc; DataDoc?: Doc; + DocumentView?: DocumentView; ContainingCollectionView: Opt<CollectionView>; ContainingCollectionDoc: Opt<Doc>; CollectionFreeFormDocumentView?: () => CollectionFreeFormDocumentView; @@ -913,6 +914,7 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu }}> <DocumentContentsView key={1} renderDepth={this.props.renderDepth} + DocumentView={this} Document={this.props.Document} DataDoc={this.props.DataDoc} ContainingCollectionView={this.props.ContainingCollectionView} |