From 22ed0c503cccadaec4355abd7678b4a55f888d92 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sun, 20 Mar 2022 22:16:40 +1100 Subject: Fix small tile-alignment bug --- src/lib.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3