From 31ca828d66bdc0f381c35a9bee5ba8545a69a0f9 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Thu, 3 Mar 2022 13:19:11 -0500
Subject: fixed content fitting views.  fixed multirow/column collections.

---
 .../collections/collectionMulticolumn/CollectionMulticolumnView.tsx    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/client/views/collections/collectionMulticolumn/CollectionMulticolumnView.tsx')

diff --git a/src/client/views/collections/collectionMulticolumn/CollectionMulticolumnView.tsx b/src/client/views/collections/collectionMulticolumn/CollectionMulticolumnView.tsx
index ec1cbadd5..b89e28c4f 100644
--- a/src/client/views/collections/collectionMulticolumn/CollectionMulticolumnView.tsx
+++ b/src/client/views/collections/collectionMulticolumn/CollectionMulticolumnView.tsx
@@ -51,7 +51,8 @@ export class CollectionMulticolumnView extends CollectionSubView(MulticolumnDocu
 
     @computed
     private get minimumDim() {
-        return Math.min(...this.ratioDefinedDocs.filter(layout => layout._dimMagnitude).map(layout => NumCast(layout._dimMagnitude)));
+        const ratioDocs = this.ratioDefinedDocs.filter(layout => layout._dimMagnitude);
+        return ratioDocs.length ? Math.min(...ratioDocs.map(layout => NumCast(layout._dimMagnitude))) : 1;
     }
 
     /**
-- 
cgit v1.2.3-70-g09d2

