aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-03-20 22:16:40 +1100
committerTerry Truong <terry06890@gmail.com>2022-03-20 22:16:40 +1100
commit22ed0c503cccadaec4355abd7678b4a55f888d92 (patch)
treeba5b310836f2041e885368701d2a81204d2dc34b
parentab5c75ec1b298600eab24624d91bf489f3738e0a (diff)
Fix small tile-alignment bug
-rw-r--r--src/lib.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.ts b/src/lib.ts
index 16f1e2e..6b697f0 100644
--- a/src/lib.ts
+++ b/src/lib.ts
@@ -501,12 +501,12 @@ let sweepLayoutFn: LayoutFn = function (node, pos, dims, showHeader, opts, ownOp
if (sweptLeft){
parentArea.dims[1] = leavesLyt.dims[1];
if (sepArea != null && sepAreaLen > sepArea.dims[1]){ // If space used by child
- parentArea.dims[1] += sepArea.dims[1] + opts.tileSpacing*2;
+ parentArea.dims[1] += sepArea.dims[1] + opts.tileSpacing;
}
} else {
parentArea.dims[0] = leavesLyt.dims[0];
if (sepArea != null && sepAreaLen > sepArea.dims[0]){
- parentArea.dims[0] += sepArea.dims[0] + opts.tileSpacing*2;
+ parentArea.dims[0] += sepArea.dims[0] + opts.tileSpacing;
}
}
// Align parentArea size with non-leaves area