From 96b9af4919e6f7eeeae1b5ae123f54bbbfad5a2f Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Wed, 16 Mar 2022 10:46:30 +1100 Subject: Use outlines and pseudo-divs instead of borders --- src/lib.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib.ts') diff --git a/src/lib.ts b/src/lib.ts index d5f7792..b23ccc0 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -31,8 +31,9 @@ export class LayoutTree { case 'rect': newLayout = rectLayoutFn(this.root, pos, dims, true, this.options); break; case 'sweep': newLayout = sweepLayoutFn(this.root, pos, dims, true, this.options); break; } - if (newLayout == null) + if (newLayout == null){ return false; + } this.copyTreeForRender(newLayout, this.root); return true; } -- cgit v1.2.3