画布高度调整
This commit is contained in:
parent
f2a59743cb
commit
77afce4d1d
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user