From 219f843c82692145fa23ded4487f288df8fd319a Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Fri, 25 Mar 2022 12:42:19 +1100
Subject: Add some basic layout settings

---
 src/components/TileTree.vue | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

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

diff --git a/src/components/TileTree.vue b/src/components/TileTree.vue
index 30e5ddc..fba5863 100644
--- a/src/components/TileTree.vue
+++ b/src/components/TileTree.vue
@@ -215,6 +215,9 @@ export default defineComponent({
 		onSettingsClose(){
 			this.settingsOpen = false;
 		},
+		onLayoutOptionChange(){
+			tryLayout(this.activeRoot, this.tileAreaPos, this.tileAreaDims, this.layoutOptions, true);
+		},
 	},
 	created(){
 		window.addEventListener('resize', this.onResize);
@@ -238,7 +241,9 @@ export default defineComponent({
 		:pos="[0,0]" :dims="parentBarDims" :nodes="sepdParents" :options="componentOptions"
 		@sepd-parent-clicked="onSepdParentClicked" @info-icon-clicked="onInnerInfoIconClicked"/>
 	<tile-info-modal :tolNode="infoModalNode" :options="componentOptions" @info-modal-close="onInfoModalClose"/>
-	<settings :isOpen="settingsOpen" @settings-open="onSettingsOpen" @settings-close="onSettingsClose"/>
+	<settings :isOpen="settingsOpen" :layoutOptions="layoutOptions" :componentOptions="componentOptions"
+		@settings-open="onSettingsOpen" @settings-close="onSettingsClose"
+		@layout-option-change="onLayoutOptionChange"/>
 </div>
 </template>
 
-- 
cgit v1.2.3

