From c8b42c9923213390289395ef477f8645191b0ce8 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Mon, 10 Oct 2022 19:32:03 +1100
Subject: Skip initial timeline+baseline transitions

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

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index 95009e7..d422a41 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -41,8 +41,10 @@ import HelpIcon from './components/icon/HelpIcon.vue';
 const contentAreaRef = ref(null as HTMLElement | null);
 
 // For content sizing
-const contentWidth = ref(0);
-const contentHeight = ref(0);
+const contentWidth = ref(window.innerWidth);
+const contentHeight = ref(window.innerHeight);
+	// Setting this and contentWidth to 0 makes it likely that 'vert' will change on startup,
+		// and trigger unwanted transitions (like baseline spans changing size)
 function updateAreaDims(){
 	let contentAreaEl = contentAreaRef.value!;
 	contentWidth.value = contentAreaEl.offsetWidth;
-- 
cgit v1.2.3

