aboutsummaryrefslogtreecommitdiff
path: root/src/lib.ts
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-03-16 10:46:30 +1100
committerTerry Truong <terry06890@gmail.com>2022-03-16 10:46:30 +1100
commit96b9af4919e6f7eeeae1b5ae123f54bbbfad5a2f (patch)
tree89e34018e0984aaa490e2ad48c8c806dbf8642ea /src/lib.ts
parent7b01334360c964beec86e6dc0ef32b3f6531eb17 (diff)
Use outlines and pseudo-divs instead of borders
Diffstat (limited to 'src/lib.ts')
-rw-r--r--src/lib.ts3
1 files changed, 2 insertions, 1 deletions
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;
}