aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-08-16 09:48:06 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-08-16 09:48:06 -0400
commitdb08a4948e5943b39f3e16e076f37808eb9ef940 (patch)
treed23c0556f7b253050adc768b4a409541a4ece8cc /src
parent50e41fc0ce81c715f362be79aa2c12633f0c3ebf (diff)
fixed height of stacking views
Diffstat (limited to 'src')
-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 4add7774e..288c38730 100644
--- a/src/client/views/collections/CollectionStackingView.tsx
+++ b/src/client/views/collections/CollectionStackingView.tsx
@@ -95,7 +95,7 @@ export class CollectionStackingView extends CollectionSubView(doc => doc) {
if (this.isStackingView && BoolCast(this.props.Document.autoHeight)) {
let sectionsList = Array.from(this.Sections.size ? this.Sections.values() : [this.filteredChildren]);
return this.props.ContentScaling() * sectionsList.reduce((maxHght, s) => Math.max(maxHght,
- 50 + s.reduce((height, d, i) => height + this.childDocHeight(d) + (i === s.length - 1 ? this.yMargin : this.gridGap), this.yMargin)
+ (this.Sections.size ? 50 : 0) + s.reduce((height, d, i) => height + this.childDocHeight(d) + (i === s.length - 1 ? this.yMargin : this.gridGap), this.yMargin)
), 0);
}
return -1;