From c6b787974e52035b64b1fb40163c1fedf67c8376 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Wed, 23 Mar 2022 10:05:23 +1100
Subject: Move root-tile boundary-offset handling to TileTree

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

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index 7df0803..234896d 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -8,14 +8,13 @@ export default defineComponent({
 		return {
 			width: document.documentElement.clientWidth,
 			height: document.documentElement.clientHeight,
-			tileTreeOffset: 5, // For space between tile-tree and display boundary
 			// For window-resize-handler throttling
 			resizeThrottled: false,
 			resizeDelay: 50, //ms
 		}
 	},
 	computed: {
-		styles(){
+		styles(): Record<string,string> {
 			return {
 				position: 'absolute',
 				left: '0',
@@ -51,8 +50,7 @@ export default defineComponent({
 
 <template>
 <div :style="styles">
-	<tile-tree :pos="[tileTreeOffset, tileTreeOffset]"
-		:dims="[width - tileTreeOffset*2, height - tileTreeOffset*2]"/>
+	<tile-tree :pos="[0, 0]" :dims="[width, height]"/>
 </div>
 </template>
 
-- 
cgit v1.2.3

