diff options
| author | bobzel <zzzman@gmail.com> | 2021-03-24 22:58:36 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-03-24 22:58:36 -0400 |
| commit | 73e5c873f1a22c9a1f0aeb5d0c6f85c5c8b2f8fc (patch) | |
| tree | 1ec1b555205b61fbad23604e37d236883d1de2be /src/client/views/nodes/ScreenshotBox.tsx | |
| parent | 7831d53550f1b537aecc4e59fd202de68da023ca (diff) | |
fixed screenshot box to not show minimap
Diffstat (limited to 'src/client/views/nodes/ScreenshotBox.tsx')
| -rw-r--r-- | src/client/views/nodes/ScreenshotBox.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/views/nodes/ScreenshotBox.tsx b/src/client/views/nodes/ScreenshotBox.tsx index ec97a11e4..dba730d12 100644 --- a/src/client/views/nodes/ScreenshotBox.tsx +++ b/src/client/views/nodes/ScreenshotBox.tsx @@ -58,6 +58,9 @@ export class ScreenshotBox extends ViewBoxAnnotatableComponent<FieldViewProps, S } } + componentDidMount() { + this.props.setContentView?.(this); // this tells the DocumentView that this ScreenshotBox is the "content" of the document. this allows the DocumentView to indirectly call getAnchor() on the AudioBox when making a link. + } componentWillUnmount() { const ind = DocUtils.ActiveRecordings.indexOf(this); ind !== -1 && (DocUtils.ActiveRecordings.splice(ind, 1)); |
