diff options
author | bob <bcz@cs.brown.edu> | 2019-10-11 16:47:42 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-10-11 16:47:42 -0400 |
commit | 3afceef2f8c2be1bddf67cecd97086a41ec6dc48 (patch) | |
tree | ec40810d7b2a4c5f291030a16fcc2d65df8df00d /src/client/views/collections/CollectionStackingViewFieldColumn.tsx | |
parent | d95d46e90851141bed17dd30c103be5d0e1e60ab (diff) |
changes to menu layouts
Diffstat (limited to 'src/client/views/collections/CollectionStackingViewFieldColumn.tsx')
-rw-r--r-- | src/client/views/collections/CollectionStackingViewFieldColumn.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionStackingViewFieldColumn.tsx b/src/client/views/collections/CollectionStackingViewFieldColumn.tsx index 815b28586..7e54b0f29 100644 --- a/src/client/views/collections/CollectionStackingViewFieldColumn.tsx +++ b/src/client/views/collections/CollectionStackingViewFieldColumn.tsx @@ -335,11 +335,11 @@ export class CollectionStackingViewFieldColumn extends React.Component<CSVFieldC </div> </div> : (null); for (let i = 0; i < cols; i++) templatecols += `${style.columnWidth / style.numGroupColumns}px `; - let chromeStatus = this.props.parent.props.ContainingCollectionDoc && this.props.parent.props.ContainingCollectionDoc.chromeStatus; + let chromeStatus = this.props.parent.props.Document.chromeStatus; return ( <div className="collectionStackingViewFieldColumn" key={heading} style={{ width: `${100 / ((uniqueHeadings.length + ((chromeStatus !== 'view-mode' && chromeStatus !== 'disabled') ? 1 : 0)) || 1)}%`, background: this._background }} ref={this.createColumnDropRef} onPointerEnter={this.pointerEntered} onPointerLeave={this.pointerLeave}> - {headingView} + {this.props.parent.Document.hideHeadings ? (null) : headingView} { this.collapsed ? (null) : <div> |