aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-03-10 15:46:18 +1100
committerTerry Truong <terry06890@gmail.com>2022-03-10 15:46:18 +1100
commiteff60c9a9214aa46c7792e34dad0f174920b0c48 (patch)
tree9e741ad2eef56392a7ff96d59fe73be35211505b /src/components
parent2e4331783e2e86396703620656a7005d4d84ecff (diff)
Add sweep-to-narrower-document-side. Do some minor reorganisation.
Diffstat (limited to 'src/components')
-rw-r--r--src/components/TileTree.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/TileTree.vue b/src/components/TileTree.vue
index dd91fcb..65201c5 100644
--- a/src/components/TileTree.vue
+++ b/src/components/TileTree.vue
@@ -71,11 +71,11 @@ export default {
},
tryLayout(){
let layout = LAYOUT_SYS.genLayout(this.tree, 0, 0, this.width, this.height, true);
- shiftEmpty(layout);
if (layout == null){
console.log('Unable to layout tree');
return false;
} else {
+ shiftEmpty(layout);
this.applyLayout(layout, this.tree);
return true;
}