Guanrui1 commented on issue #6048: flex布局echarts缩放问题(bug?)
URL: 
https://github.com/apache/incubator-echarts/issues/6048#issuecomment-444807206
 
 
   
   
   `created() {
           this.$root.$on('processStatistics', () => {
               if (this.count == 0) {
                   
this.large.width==0?this.completeRate.resize():this.completeRate.resize({
                       width: this.large.width,
                       height: this.large.height
                   })
                   this.large.width = this.$refs.echarts.offsetWidth
                   this.large.height = this.$refs.echarts.offsetHeight
                   this.count++
               } else {
                   this.completeRate.resize({
                       width: this.small.width,
                       height: this.small.height
                   })
                   this.count--
               }
           })
       },
       mounted() {
           this.small.width = this.$refs.echarts.offsetWidth
           this.small.height = this.$refs.echarts.offsetHeight
           this.createChart()
           this.setChartValue()
       }`
   **使用resize的opt参数可以解决flex布局缩小的问题**

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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]

Reply via email to