diff options
author | bob <bcz@cs.brown.edu> | 2019-09-14 18:20:38 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-09-14 18:20:38 -0400 |
commit | 8088cd8ead45115be6f1d4c05ddee16936fa0cfb (patch) | |
tree | b495e0953e356ef5ae3559392842df40d1c6c15e | |
parent | 2f1dbc8906d6428e8b3b9a973d6bab807eabd025 (diff) |
set autoHeight to true when switching to stacking
-rw-r--r-- | src/client/views/collections/CollectionView.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx index 9caa4ea37..bce4eb427 100644 --- a/src/client/views/collections/CollectionView.tsx +++ b/src/client/views/collections/CollectionView.tsx @@ -95,7 +95,12 @@ export class CollectionView extends React.Component<FieldViewProps> { } subItems.push({ description: "Schema", event: () => this.props.Document.viewType = CollectionViewType.Schema, icon: "th-list" }); subItems.push({ description: "Treeview", event: () => this.props.Document.viewType = CollectionViewType.Tree, icon: "tree" }); - subItems.push({ description: "Stacking", event: () => this.props.Document.viewType = CollectionViewType.Stacking, icon: "ellipsis-v" }); + subItems.push({ + description: "Stacking", event: () => { + this.props.Document.viewType = CollectionViewType.Stacking; + this.props.Document.autoHeight = true + }, icon: "ellipsis-v" + }); subItems.push({ description: "Masonry", event: () => this.props.Document.viewType = CollectionViewType.Masonry, icon: "columns" }); switch (this.props.Document.viewType) { case CollectionViewType.Freeform: { |