From 0e760e15180f7714ded5949cdb4a497311883199 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sun, 6 Mar 2022 15:18:47 +1100 Subject: Improve layouts by using arFromArea() funcs as layout-info, and improving tile-header awareness --- src/components/Tile.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/components/Tile.vue') diff --git a/src/components/Tile.vue b/src/components/Tile.vue index 753922d..1693349 100644 --- a/src/components/Tile.vue +++ b/src/components/Tile.vue @@ -20,9 +20,7 @@ export default { layout(){ if (this.tree.children.length == 0) return {}; - let hOffset = (this.hideHeader ? 0 : this.layoutSys.HEADER_SZ); - let x = 0, y = hOffset, w = this.width, h = this.height - hOffset; - return this.layoutSys.genLayout(this.tree.children, 0, hOffset, this.width, this.height - hOffset); + return this.layoutSys.genLayout(this.tree.children, 0, 0, this.width, this.height, this.hideHeader); } }, methods: { -- cgit v1.2.3