aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentDecorations.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-10-17 16:48:39 -0400
committerbob <bcz@cs.brown.edu>2019-10-17 16:48:39 -0400
commitfca8d503610f799ca0e4afcec114075456d411e0 (patch)
treecac4a76094e72dfc302f0118f763ce1753ab4053 /src/client/views/DocumentDecorations.tsx
parentdcdefb2a5a80d3c4d5451d6c7fc7213565d5ea5f (diff)
switched links over to be a document
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r--src/client/views/DocumentDecorations.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index 927729487..6e8ba2d3d 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -167,8 +167,7 @@ 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._selectedLink !== -1 ||
- documentView.props.renderDepth === 0 ||
+ if (documentView.props.renderDepth === 0 ||
Doc.AreProtosEqual(documentView.props.Document, CurrentUserUtils.UserDocument)) {
return bounds;
}