diff options
author | bobzel <zzzman@gmail.com> | 2022-12-08 10:08:33 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-12-08 10:08:33 -0500 |
commit | 52a435b09013619209b8bcc6758baeca47d5d350 (patch) | |
tree | 0b8f24da5b18a5f5436c18b952c02fa2e03a91be /src/client/views/linking/LinkMenuItem.tsx | |
parent | 4d10925f535f3d2c09ab4fa01de83897cc13fc43 (diff) |
cleaned up animation effects to not reference presBox. fixed anchors in text to have link properties set properly from properties view.
Diffstat (limited to 'src/client/views/linking/LinkMenuItem.tsx')
-rw-r--r-- | src/client/views/linking/LinkMenuItem.tsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/views/linking/LinkMenuItem.tsx b/src/client/views/linking/LinkMenuItem.tsx index fb4c6873e..e5a3200ca 100644 --- a/src/client/views/linking/LinkMenuItem.tsx +++ b/src/client/views/linking/LinkMenuItem.tsx @@ -132,7 +132,7 @@ export class LinkMenuItem extends React.Component<LinkMenuItemProps> { ? Cast(this.props.linkDoc.anchor12, Doc, null) : undefined; - if (focusDoc) this.props.docView.ComponentView?.scrollFocus?.(focusDoc, true); + if (focusDoc) this.props.docView.ComponentView?.scrollFocus?.(focusDoc, { instant: true }); LinkFollower.FollowLink(this.props.linkDoc, this.props.sourceDoc, this.props.docView.props, false); } } @@ -146,9 +146,6 @@ export class LinkMenuItem extends React.Component<LinkMenuItemProps> { const title = StrCast(this.props.destinationDoc.title).length > 18 ? StrCast(this.props.destinationDoc.title).substr(0, 14) + '...' : this.props.destinationDoc.title; - // ... - // from anika to bob: here's where the text that is specifically linked would show up (linkDoc.storedText) - // ... const source = this.props.sourceDoc.type === DocumentType.RTF ? this.props.linkDoc.storedText |