diff options
| author | bobzel <zzzman@gmail.com> | 2022-06-22 13:47:03 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-06-22 13:47:03 -0400 |
| commit | 3aecadda9569be64459e44c3f2f1cc1441e19cd1 (patch) | |
| tree | 005b074fe346b59ead855f87a22828b8c631d85b /src/client/views/collections | |
| parent | fb7e5e6fa98f32a657538704fa5441ddda8e0bb8 (diff) | |
| parent | 5bf71bb9fde28de8cc2cedaf03708315933acc30 (diff) | |
Merge branch 'data-visualization-view-naafi'
Diffstat (limited to 'src/client/views/collections')
| -rw-r--r-- | src/client/views/collections/CollectionStackingView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx index 684c919bd..4e8c14039 100644 --- a/src/client/views/collections/CollectionStackingView.tsx +++ b/src/client/views/collections/CollectionStackingView.tsx @@ -229,6 +229,7 @@ export class CollectionStackingView extends CollectionSubView<Partial<collection } } isContentActive = () => this.props.isSelected() || this.props.isContentActive(); + isChildContentActive = () => this.props.isDocumentActive?.() && (this.props.childDocumentsActive?.() || BoolCast(this.rootDoc.childDocumentsActive)); getDisplayDoc(doc: Doc, width: () => number) { const dataDoc = (!doc.isTemplateDoc && !doc.isTemplateForField && !doc.PARAMS) ? undefined : this.props.DataDoc; const height = () => this.getDocHeight(doc); @@ -245,7 +246,7 @@ export class CollectionStackingView extends CollectionSubView<Partial<collection styleProvider={this.styleProvider} docViewPath={this.props.docViewPath} fitWidth={this.props.childFitWidth} - isContentActive={emptyFunction} + isContentActive={this.isChildContentActive} onKey={this.onKeyDown} isDocumentActive={this.isContentActive} LayoutTemplate={this.props.childLayoutTemplate} |
