aboutsummaryrefslogtreecommitdiff
path: root/src/components/TileTree.vue
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-03-09 23:32:04 +1100
committerTerry Truong <terry06890@gmail.com>2022-03-09 23:32:04 +1100
commit7cdd3ae45c2544b239d85174d536fa641f01cf38 (patch)
tree0fb1cb4f613bcc999cf6ab645e01e1226c5a5fb5 /src/components/TileTree.vue
parent28d98f54ffe42f0b10971789214e765f2fae098c (diff)
Re-position headers for parent-area-using tile-groups
Diffstat (limited to 'src/components/TileTree.vue')
-rw-r--r--src/components/TileTree.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/TileTree.vue b/src/components/TileTree.vue
index a772594..4ce3f28 100644
--- a/src/components/TileTree.vue
+++ b/src/components/TileTree.vue
@@ -27,14 +27,14 @@ export default {
let tree = {
tolNode:tol, children:[],
x:0, y:0, w:0, h:0, headerSz:0,
- sideArea:{x:0, y:0, w:0, h:0, sweptLeft:false, extraSz:0},
+ sideArea:null,
};
function initTreeRec(tree, lvl){
if (lvl > 0)
tree.children = tree.tolNode.children.map(tNode => initTreeRec({
tolNode: tNode, children: [],
x:0, y:0, w:0, h:0, headerSz:0,
- sideArea:{x:0, y:0, w:0, h:0, sweptLeft:false, extraSz:0},
+ sideArea:null,
}, lvl-1));
return tree;
}
@@ -97,7 +97,7 @@ export default {
n.y += layout.sideArea.y;
});
} else {
- tree.sideArea = {x:0, y:0, w:0, h:0, sweptLeft:false, extraSz:0};
+ tree.sideArea = null;
}
}
},