fix : 修复图表全屏bug
This commit is contained in:
@@ -143,7 +143,7 @@ const handleFullScreen = () => {
|
||||
fan.classList.remove('shrink-screen-dialog')
|
||||
titleName.style.fontSize = '70px'
|
||||
erd.listenTo(document.getElementById('windDialog'), (element) => {
|
||||
fanChart.style.height = (element.offsetHeight - 120) + 'px'
|
||||
fanChart.style.height = (element.offsetHeight - 140) + 'px'
|
||||
myEcharts.resize();
|
||||
});
|
||||
nextTick(() => {
|
||||
@@ -210,7 +210,7 @@ const getWindInfo = (equipmentId, type = 'day', time = '', flag, startTime, endT
|
||||
const fanChart = document.getElementById('container')
|
||||
const erd = elementResizeDetectorMaker();
|
||||
erd.listenTo(document.getElementById('windDialog'), (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