diff options
author | bobzel <zzzman@gmail.com> | 2019-09-23 13:30:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-23 13:30:11 -0400 |
commit | 87407e68556db6f0c8641baf6b6d6dba98e4bbc5 (patch) | |
tree | 6c41e6f5be3645060e6515f0ffc531c2585e2d6e /src/client/views/nodes/DocumentView.tsx | |
parent | c2dff9d46071952c6fca450952bcb0952a9bba86 (diff) | |
parent | 910a3de2c294b1f5e074eef3cbfe043462ef22dd (diff) |
Merge pull request #281 from browngraphicslab/doc_deco_claire
Automatically scroll to target when following a link to a text region (#268)
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index d8cfff973..e89fddd25 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -350,7 +350,7 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu // const docs = await SearchUtil.Search(`data_l:"${destDoc[Id]}"`, true); // const views = docs.map(d => DocumentManager.Instance.getDocumentView(d)).filter(d => d).map(d => d as DocumentView); de.data.linkSourceDocument !== this.props.Document && - (de.data.linkDocument = DocUtils.MakeLink(de.data.linkSourceDocument, this.props.Document, this.props.ContainingCollectionDoc)); + (de.data.linkDocument = DocUtils.MakeLink(de.data.linkSourceDocument, this.props.Document, this.props.ContainingCollectionDoc, undefined, "in-text link being created")); // TODODO this is where in text links get passed } } |