pumelotea opened a new issue #12170: 在css网格布局中,resize无效 URL: https://github.com/apache/incubator-echarts/issues/12170 谷歌内核69.0.3497.81 qq浏览器4.5.122.400 (64-bit) ``` <div class="parent"> <div class="div1"> </div> <div class="div2"> </div> <div class="div3"> </div> <div class="div4"> </div> <div class="div5"> </div> <div class="div6"> </div> <div class="div7"> </div> <div class="div8"> </div> <div class="div9"> </div> </div> ``` ``` .parent { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); grid-column-gap: 0px; grid-row-gap: 0px; } .div1 { grid-area: 1 / 1 / 2 / 2; } .div2 { grid-area: 1 / 2 / 2 / 3; } .div3 { grid-area: 1 / 3 / 2 / 4; } .div4 { grid-area: 2 / 1 / 3 / 2; } .div5 { grid-area: 2 / 2 / 3 / 3; } .div6 { grid-area: 2 / 3 / 3 / 4; } .div7 { grid-area: 3 / 1 / 4 / 2; } .div8 { grid-area: 3 / 2 / 4 / 3; } .div9 { grid-area: 3 / 3 / 4 / 4; } ``` 在div1-7中放入图表,然后图表只能放大,不能缩小。 图表中实现了reszie ``` this.__resizeHanlder = debounce(() => { if (this.chart) { console.log('resize now') this.chart.resize() } }, 100) window.addEventListener('resize', this.__resizeHanlder) ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
