{"action":"opened","issue":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/3894","repository_url":"https://api.github.com/repos/ecomfe/echarts","labels_url":"https://api.github.com/repos/ecomfe/echarts/issues/3894/labels{/name}","comments_url":"https://api.github.com/repos/ecomfe/echarts/issues/3894/comments","events_url":"https://api.github.com/repos/ecomfe/echarts/issues/3894/events","html_url":"https://github.com/ecomfe/echarts/issues/3894","id":172323155,"number":3894,"title":"echarts  容器width:100%有问题。","user":{"login":"JSlife23","id":7855952,"avatar_url":"https://avatars.githubusercontent.com/u/7855952?v=3","gravatar_id":"","url":"https://api.github.com/users/JSlife23","html_url":"https://github.com/JSlife23","followers_url":"https://api.github.com/users/JSlife23/followers","following_url":"https://api.github.com/users/JSlife23/following{/other_user}","gists_url":"https://api.github.com/users/JSlife23/gists{/gist_id}","starred_url":"https://api.github.com/users/JSlife23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSlife23/subscriptions","organizations_url":"https://api.github.com/users/JSlife23/orgs","repos_url":"https://api.github.com/users/JSlife23/repos","events_url":"https://api.github.com/users/JSlife23/events{/privacy}","received_events_url":"https://api.github.com/users/JSlife23/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-21T14:19:19Z","updated_at":"2016-08-21T14:19:19Z","closed_at":null,"body":"<!--\r\n为了方便我们能够复现和修复 bug，请遵从下面的规范描述您的问题。\r\n-->\r\n#### 问题简述 (One-line summary)\r\n\r\n我的echarts容器 是放在一个tab选项卡里面的 初始化echarts容器 display:none; 我给echarts容器设置的width:100%height:xxpx; 。但是当我帮数据填充进去切换选项卡到echarts的时候生成的图标width是100px,如果我初始化echarts  width：xxxpx就是正常的。也就是说echarts初始化要是设置display:none;的时候获取dom的width:100%有问题。\r\n#### 版本及环境 (Version & Environment)\r\n+ ECharts 版本 (ECharts version):  3.2.1\r\n+ 浏览器类型和版本 (Browser version): chrome\r\n+ 操作系统类型和版本 (OS Version): win7\r\n\r\n\r\n#### 重现步骤 (Steps to reproduce)\r\n1.\r\n2.\r\n\r\n\r\n#### 期望结果 (Expected behaviour)\r\n\r\n\r\n\r\n#### 可能哪里有问题 (What went wrong)\r\n\r\n\r\n\r\n#### ECharts配置项 (ECharts option)\r\n<!-- 下方贴你的option，注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。\r\n最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing\r\n-->\r\n```javascript\r\noption = {\r\n\r\n}\r\n\r\n```\r\n\r\n\r\n#### 其他信息 (Other comments)\r\n<!-- 例如，截图或线上实例 (JSFiddle/JSBin/Codepen) (For example: Screenshot or Online demo) -->\r\n\r\n"}}
{"actor":{"display_login":"JSlife23"}}