From 422e43532b36c8cca387e0a64a280138593bb22a Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Fri, 27 May 2022 19:37:25 +1000 Subject: Use static-layout for ancestry-bar and tutorial-pane --- src/components/TutorialPane.vue | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) (limited to 'src/components/TutorialPane.vue') diff --git a/src/components/TutorialPane.vue b/src/components/TutorialPane.vue index c04aeee..d5f681c 100644 --- a/src/components/TutorialPane.vue +++ b/src/components/TutorialPane.vue @@ -5,11 +5,10 @@ import {Action} from '../lib'; export default defineComponent({ props: { - pos: {type: Array as unknown as PropType<[number,number]>, required: true}, - dims: {type: Array as unknown as PropType<[number,number]>, required: true}, uiOpts: {type: Object, required: true}, triggerFlag: {type: Boolean, required: true}, skipWelcome: {type: Boolean, default: false}, + height: {type: String, default: 'auto'}, }, data(){ return { @@ -20,13 +19,9 @@ export default defineComponent({ computed: { styles(): Record { return { - position: 'absolute', - left: this.pos[0] + 'px', - top: this.pos[1] + 'px', - width: this.dims[0] + 'px', - height: this.dims[1] + 'px', backgroundColor: this.uiOpts.tutorialPaneBgColor, color: this.uiOpts.tutorialPaneTextColor, + height: this.height, }; }, contentStyles(): Record { @@ -98,18 +93,20 @@ export default defineComponent({