aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-10-03 01:11:12 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-10-03 01:11:12 -0400
commit3eae5e99f1c313f25ad26534712c1608a73e8cb4 (patch)
treed0bd527b6a652dbaf64022d1ccc9fe1cbc4c196b /src/client/views/nodes/DocumentView.tsx
parentb427ee6e2c4b9fb1a6c06262c98424bb5c65e314 (diff)
small tweaks to link following target highlighting.
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 67c3fe6e7..54fafc20b 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -225,6 +225,7 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu
}
else if (linkDocs.length) {
DocumentManager.Instance.FollowLink(undefined, this.props.Document,
+ // open up target if it's not already in view ... by zooming into the button document first and setting flag to reset zoom afterwards
(doc: Doc, maxLocation: string) => this.props.focus(this.props.Document, true, 1, () => this.props.addDocTab(doc, undefined, maxLocation)),
ctrlKey, altKey, this.props.ContainingCollectionDoc);
}