aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentDecorations.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-05-30 10:51:00 -0400
committerbob <bcz@cs.brown.edu>2019-05-30 10:51:00 -0400
commit37e16bb59a38c000ba80312a0661e1f54c93f3c6 (patch)
tree0a9669b43a43478be1ea0e5d9c0c421d3c9a6533 /src/client/views/DocumentDecorations.tsx
parent83edfcd06b659839f161121728de02aca91d4af8 (diff)
cleaned up event handling for documentviews. fixed context menu closing.
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r--src/client/views/DocumentDecorations.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index 319e91337..e06fd6119 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -251,7 +251,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>
}
if (!this._removeIcon) {
if (selectedDocs.length === 1) {
- this.getIconDoc(selectedDocs[0]).then(icon => selectedDocs[0].props.toggleMinimized());
+ this.getIconDoc(selectedDocs[0]).then(icon => selectedDocs[0].toggleMinimized());
} else if (Math.abs(e.pageX - this._downX) < Utils.DRAG_THRESHOLD &&
Math.abs(e.pageY - this._downY) < Utils.DRAG_THRESHOLD) {
let docViews = SelectionManager.ViewsSortedVertically();