aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentDecorations.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-10-17 16:02:37 -0400
committerbob <bcz@cs.brown.edu>2019-10-17 16:02:37 -0400
commitdcdefb2a5a80d3c4d5451d6c7fc7213565d5ea5f (patch)
treedc0d50ed9d9f5d3b5e34e12c3782dcf779d105d6 /src/client/views/DocumentDecorations.tsx
parent17042f9598e20615668830a7c139a8a31dc6c109 (diff)
initial working version of draggable link anchors.
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r--src/client/views/DocumentDecorations.tsx3
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;
}