aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionStackingView.tsx
diff options
context:
space:
mode:
authorStanley Yip <33562077+yipstanley@users.noreply.github.com>2019-07-29 20:05:41 +0000
committerGitHub <noreply@github.com>2019-07-29 20:05:41 +0000
commit6e0d531799934d8f3621d23bdfd95c17bd03fa0c (patch)
treee5a83c6caac6f3ae17db354cc6da4f09e22ca9f6 /src/client/views/collections/CollectionStackingView.tsx
parent1476b04c1549399727fc207e7b6ffce83f7715b3 (diff)
parentb83f7c047a48d16235caeeba03380f403dad092e (diff)
Merge pull request #228 from browngraphicslab/toggle_claire
fixed column width not adjusting with chromeStatus disabled / collapsed
Diffstat (limited to 'src/client/views/collections/CollectionStackingView.tsx')
-rw-r--r--src/client/views/collections/CollectionStackingView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx
index 85aa322a2..6e1968774 100644
--- a/src/client/views/collections/CollectionStackingView.tsx
+++ b/src/client/views/collections/CollectionStackingView.tsx
@@ -289,7 +289,7 @@ export class CollectionStackingView extends CollectionSubView(doc => doc) {
this.section(undefined, this.filteredChildren)}
{(this.props.Document.sectionFilter && this.props.CollectionView.props.Document.chromeStatus !== 'disabled') ?
<div key={`${this.props.Document[Id]}-addGroup`} className="collectionStackingView-addGroupButton"
- style={{ width: (this.columnWidth / (headings.length + 1)) - 10, marginTop: 10 }}>
+ style={{ width: (this.columnWidth / (headings.length + (this.props.CollectionView.props.Document.chromeStatus !== 'disabled' ? 1 : 0))) - 10, marginTop: 10 }}>
<EditableView {...editableViewProps} />
</div> : null}
</div>