画布高度调整

This commit is contained in:
fan 2023-12-22 14:50:52 +08:00
parent f2a59743cb
commit 77afce4d1d

View File

@ -1,10 +1,9 @@
<template>
<q-layout view="hHh LpR fFf" style="overflow-y: hidden">
<q-resize-observer @resize="onResize" />
<q-page-container>
<q-page class="row items-center justify-evenly">
<q-page-container style="padding-top: 0">
<div id="line-app-container"></div>
</q-page-container>
</q-layout>
</q-page>
</template>
<script setup lang="ts">
@ -67,7 +66,7 @@ function onResize() {
const dom = document.getElementById('line-app-container');
if (dom) {
dom.style.width = props.sizeWidth + 'px';
dom.style.height = props.sizeHeight + 50 + 'px';
dom.style.height = props.sizeHeight + 'px';
}
}