[GitHub] Guanrui1 commented on issue #6048: flex布局echarts缩放问题(bug?)

2018-12-06 Thread GitBox
Guanrui1 commented on issue #6048: flex布局echarts缩放问题(bug?)
URL: 
https://github.com/apache/incubator-echarts/issues/6048#issuecomment-444813554
 
 
   官方不够重视flex布局下使用resize获取的默认容器宽高不正确的问题,目前我只能用这个办法解决了!


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:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org



[GitHub] Guanrui1 commented on issue #6048: flex布局echarts缩放问题(bug?)

2018-12-06 Thread GitBox
Guanrui1 commented on issue #6048: flex布局echarts缩放问题(bug?)
URL: 
https://github.com/apache/incubator-echarts/issues/6048#issuecomment-444809080
 
 
   ```
   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:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org



[GitHub] Guanrui1 commented on issue #6048: flex布局echarts缩放问题(bug?)

2018-12-06 Thread GitBox
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:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org