From 0e760e15180f7714ded5949cdb4a497311883199 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
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/TileTree.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

diff --git a/src/components/TileTree.vue b/src/components/TileTree.vue
index 3f3f0f5..b1fb3fd 100644
--- a/src/components/TileTree.vue
+++ b/src/components/TileTree.vue
@@ -41,8 +41,8 @@ export default {
 		},
 		onInnerHeaderClicked(nodeList){
 			//nodeList will hold an array of tree-objects, from the clicked-on-tile's tree-object upward
-			this.layoutSys.updateLayoutInfoOnCollapse(nodeList);
 			nodeList[0].children = [];
+			this.layoutSys.updateLayoutInfoOnCollapse(nodeList);
 		},
 	},
 	created(){
-- 
cgit v1.2.3

