aboutsummaryrefslogtreecommitdiff
path: root/src/lib.ts
diff options
context:
space:
mode:
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;
}