aboutsummaryrefslogtreecommitdiff
path: root/src/layout.ts
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-06-26 18:49:36 +1000
committerTerry Truong <terry06890@gmail.com>2022-06-26 18:51:41 +1000
commitd2d6f0496ce816e9238e785ed3d0e7bd61b2483b (patch)
tree0a6dac78da3f236bc46599f6dac865f80d1959b9 /src/layout.ts
parent09b6244d94b9a176172de448d3bb7fa386cb8995 (diff)
Refactor TileInfoModal
Also change server info-response format to include sub-node common-names
Diffstat (limited to 'src/layout.ts')
-rw-r--r--src/layout.ts2
1 files changed, 1 insertions, 1 deletions
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){