diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-03-20 22:16:40 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-03-20 22:16:40 +1100 |
| commit | 22ed0c503cccadaec4355abd7678b4a55f888d92 (patch) | |
| tree | ba5b310836f2041e885368701d2a81204d2dc34b /src/lib.ts | |
| parent | ab5c75ec1b298600eab24624d91bf489f3738e0a (diff) | |
Fix small tile-alignment bug
Diffstat (limited to 'src/lib.ts')
| -rw-r--r-- | src/lib.ts | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
