画布高度调整
This commit is contained in:
parent
f2a59743cb
commit
77afce4d1d
@ -1,10 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<q-layout view="hHh LpR fFf" style="overflow-y: hidden">
|
<q-page class="row items-center justify-evenly">
|
||||||
<q-resize-observer @resize="onResize" />
|
<q-page-container style="padding-top: 0">
|
||||||
<q-page-container>
|
|
||||||
<div id="line-app-container"></div>
|
<div id="line-app-container"></div>
|
||||||
</q-page-container>
|
</q-page-container>
|
||||||
</q-layout>
|
</q-page>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
@ -67,7 +66,7 @@ function onResize() {
|
|||||||
const dom = document.getElementById('line-app-container');
|
const dom = document.getElementById('line-app-container');
|
||||||
if (dom) {
|
if (dom) {
|
||||||
dom.style.width = props.sizeWidth + 'px';
|
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