fix : 修复图表全屏bug
This commit is contained in:
@@ -205,7 +205,7 @@ const handleFullScreen = () => {
|
||||
fan.classList.remove('shrink-screen-dialog')
|
||||
titleName.style.fontSize = '70px'
|
||||
erd.listenTo(document.getElementById('airDialog'), (element) => {
|
||||
fanChart.style.height = (element.offsetHeight - 120) + 'px'
|
||||
fanChart.style.height = (element.offsetHeight - 140) + 'px'
|
||||
myEcharts.resize();
|
||||
});
|
||||
nextTick(() => {
|
||||
@@ -247,7 +247,7 @@ const getChartInfo = (equipmentId, type = 'day', time = '', flag, startTime, end
|
||||
const fanChart = document.getElementById('containerWind')
|
||||
const erd = elementResizeDetectorMaker();
|
||||
erd.listenTo(document.getElementById('airDialog'), (element) => {
|
||||
fanChart.style.height = element.offsetHeight - 120 + 'px'
|
||||
fanChart.style.height = element.offsetHeight - 140 + 'px'
|
||||
myEcharts.resize();
|
||||
});
|
||||
if (!isFullScreen.value) {
|
||||
|
||||
Reference in New Issue
Block a user