From 459ccef76902287ed0f8df2faf91b99bda82b091 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Sun, 6 Mar 2022 18:43:13 +1100
Subject: Reduce code redundancy by adding more info to layout-objects

---
 src/components/Tile.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/components/Tile.vue')

diff --git a/src/components/Tile.vue b/src/components/Tile.vue
index 1693349..5c78f5a 100644
--- a/src/components/Tile.vue
+++ b/src/components/Tile.vue
@@ -60,8 +60,8 @@ export default {
 			{{tree.tolNode.name}}
 		</div>
 		<tile v-for="child in tree.children" :key="child.tolNode.name" :tree="child"
-			:x="layout[child.tolNode.name].x" :y="layout[child.tolNode.name].y"
-			:width="layout[child.tolNode.name].w" :height="layout[child.tolNode.name].h"
+			:x="layout.coords[child.tolNode.name].x" :y="layout.coords[child.tolNode.name].y"
+			:width="layout.coords[child.tolNode.name].w" :height="layout.coords[child.tolNode.name].h"
 			@tile-clicked="onInnerTileClicked" @header-clicked="onInnerHeaderClicked"
 			></tile>
 	</div>
-- 
cgit v1.2.3

