From d2d6f0496ce816e9238e785ed3d0e7bd61b2483b Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sun, 26 Jun 2022 18:49:36 +1000 Subject: Refactor TileInfoModal Also change server info-response format to include sub-node common-names --- src/layout.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/layout.ts') diff --git a/src/layout.ts b/src/layout.ts index 15c156b..79d3b70 100644 --- a/src/layout.ts +++ b/src/layout.ts @@ -308,7 +308,7 @@ let sqrLayout: LayoutFn = function (node, pos, dims, showHeader, allowCollapse, let numChildren = node.children.length; let areaAR = newDims[0] / newDims[1]; // Aspect ratio let lowestEmpSpc = Number.POSITIVE_INFINITY, usedNumCols = 0, usedNumRows = 0, usedTileSz = 0; - const MAX_TRIES = 20; // If there are many possibilities, skip some + const MAX_TRIES = 50; // If there are many possibilities, skip some let ptlNumCols = numChildren == 1 ? [1] : linspace(1, numChildren, Math.min(numChildren, MAX_TRIES)).map(n => Math.floor(n)); for (let numCols of ptlNumCols){ -- cgit v1.2.3