fix : 修复图表全屏bug

This commit is contained in:
2024-03-13 17:55:43 +08:00
parent d915fd378c
commit ccafd4e438
5 changed files with 9 additions and 9 deletions

View File

@@ -199,7 +199,7 @@ const handleFullScreen = () => {
fan.classList.remove('shrink-screen-dialog')
titleName.style.fontSize = '70px'
erd.listenTo(document.getElementById('badDialog'), (element) => {
fanChart.style.height = (element.offsetHeight - 120) + 'px'
fanChart.style.height = (element.offsetHeight - 140) + 'px'
myEcharts.resize();
});
nextTick(() => {
@@ -313,7 +313,7 @@ const getBadGasChartInfo = (type, time = '', flag,startTime,endTime) => {
const fanChart = document.getElementById('containerBad')
const erd = elementResizeDetectorMaker();
erd.listenTo(document.getElementById('badDialog'), (element) => {
fanChart.style.height = element.offsetHeight - 120 + 'px'
fanChart.style.height = element.offsetHeight - 140 + 'px'
myEcharts.resize();
});
if (!isFullScreen.value) {