diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-02-02 02:56:35 -0500 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-02-02 02:56:35 -0500 |
| commit | 7c487402dab2bbffe9e72c3c5a60349d351f81fe (patch) | |
| tree | 1bda406ee343730296f343f1caf5369705271c6d /src/client/views/collections/collectionFreeForm/CollectionFreeFormLayoutEngines.tsx | |
| parent | 2e4f9609c5b508de255c3a4038305c79ef12b748 (diff) | |
fixed template aliasing and expanding
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/CollectionFreeFormLayoutEngines.tsx')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormLayoutEngines.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormLayoutEngines.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormLayoutEngines.tsx index 6f84346df..2c694c329 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormLayoutEngines.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormLayoutEngines.tsx @@ -68,7 +68,7 @@ export function computePivotLayout( let numCols = NumCast(pivotDoc.pivotNumColumns, Math.ceil(Math.sqrt(minSize))); const docMap = new Map<Doc, ViewDefBounds>(); const groupNames: PivotData[] = []; - numCols = Math.min(panelDim[0] / pivotAxisWidth, numCols); + numCols = Math.min(Math.max(1, panelDim[0] / pivotAxisWidth), numCols); const expander = 1.05; const gap = .15; |
