diff options
| author | bob <bcz@cs.brown.edu> | 2019-01-30 09:45:15 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-01-30 09:45:15 -0500 |
| commit | 13518146c955f012a6f6cd2b802f80aeeffcd58d (patch) | |
| tree | 7b5c52ceefc6c3dbbd7c80f54900f8c5ad7db6e0 /src/views/collections | |
| parent | 8ce38637c0a8ebb8aab936aec2ee46d5833e7b3b (diff) | |
docking for top-level only
Diffstat (limited to 'src/views/collections')
| -rw-r--r-- | src/views/collections/CollectionFreeFormView.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/views/collections/CollectionFreeFormView.tsx b/src/views/collections/CollectionFreeFormView.tsx index c84b8e3e5..736bcb786 100644 --- a/src/views/collections/CollectionFreeFormView.tsx +++ b/src/views/collections/CollectionFreeFormView.tsx @@ -13,6 +13,7 @@ import { ContextMenu } from "../ContextMenu"; import { DragManager } from "../../util/DragManager"; import "./CollectionFreeFormView.scss"; import { Utils } from "../../Utils"; +import { CollectionDockingView } from "./CollectionDockingView"; @observer export class CollectionFreeFormView extends React.Component<CollectionViewProps> { @@ -29,7 +30,9 @@ export class CollectionFreeFormView extends React.Component<CollectionViewProps> public get active(): boolean { var isSelected = (this.props.ContainingDocumentView != undefined && SelectionManager.IsSelected(this.props.ContainingDocumentView)); var childSelected = SelectionManager.SelectedDocuments().some(view => view.props.ContainingCollectionView == this); - var topMost = this.props.ContainingDocumentView != undefined && this.props.ContainingDocumentView.props.ContainingCollectionView == undefined; + var topMost = this.props.ContainingDocumentView != undefined && ( + this.props.ContainingDocumentView.props.ContainingCollectionView == undefined || + this.props.ContainingDocumentView.props.ContainingCollectionView instanceof CollectionDockingView); return isSelected || childSelected || topMost; } |
