diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-10-10 19:32:03 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-10-10 19:32:41 +1100 |
| commit | c8b42c9923213390289395ef477f8645191b0ce8 (patch) | |
| tree | 249044dc4e7945410fc87021b72b85553be17b44 /src/App.vue | |
| parent | bb4f7f6dd4054de2c29113f72bc43777337aed9b (diff) | |
Skip initial timeline+baseline transitions
Diffstat (limited to 'src/App.vue')
| -rw-r--r-- | src/App.vue | 6 |
1 files changed, 4 insertions, 2 deletions
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; |
