You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/11/29 06:00:10 UTC

[GitHub] yoonasy commented on issue #9494: Adaptive Question~

yoonasy commented on issue #9494: Adaptive Question~
URL: https://github.com/apache/incubator-echarts/issues/9494#issuecomment-442716415
 
 
   ![image](https://user-images.githubusercontent.com/24489180/49201789-440fac80-f3dd-11e8-9da8-56bfc959c557.png)
   @cuijian-dexter    thank you
   
   vue: It was solved this way
   ```
   window.addEventListener('resize', () => {
         let large = { width: Math.max(document.body.clientWidth - 501, 679) }
         this.$refs.ageCharts.echarts.resize(large)
         this.$refs.fansTrend.echarts.resize(large)
       })
   ```
   
   The way you provided seems not to work
   通过您提供的方式 好像不行
   ```html
   <ve-bar ref="fansTrend" :data="........"></ve-bar>
   ```
   ```js
   mounted () {
     window.onresize = this.$refs.fansTrend.echarts.resize
     // window.addEventListener('resize', this.$refs.fansTrend.echarts.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:
users@infra.apache.org


With regards,
Apache Git Services

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