diff options
| author | bob <bcz@cs.brown.edu> | 2019-10-17 16:02:37 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-10-17 16:02:37 -0400 |
| commit | dcdefb2a5a80d3c4d5451d6c7fc7213565d5ea5f (patch) | |
| tree | dc0d50ed9d9f5d3b5e34e12c3782dcf779d105d6 /src/client/views/DocumentDecorations.tsx | |
| parent | 17042f9598e20615668830a7c139a8a31dc6c109 (diff) | |
initial working version of draggable link anchors.
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
| -rw-r--r-- | src/client/views/DocumentDecorations.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 6e8ba2d3d..927729487 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -167,7 +167,8 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> get Bounds(): { x: number, y: number, b: number, r: number } { let x = this._forceUpdate; this._lastBox = SelectionManager.SelectedDocuments().reduce((bounds, documentView) => { - if (documentView.props.renderDepth === 0 || + if (documentView._selectedLink !== -1 || + documentView.props.renderDepth === 0 || Doc.AreProtosEqual(documentView.props.Document, CurrentUserUtils.UserDocument)) { return bounds; } |
