Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dom 定义了宽度和高度 为什么还是会提示Can't get dom width or height #4569

Closed
blazert opened this issue Nov 28, 2016 · 7 comments

Comments

@blazert
Copy link

blazert commented Nov 28, 2016

已经定了div的宽和高了 控制台还是提示Can't get dom width or height

@pissang
Copy link
Contributor

pissang commented Nov 28, 2016

初始化的时候无法获取 dom 的 clientWidth 和 clientHeight,新版本支持初始化的时候指定高宽,http://echarts.baidu.com/api.html#echarts.init

@pissang pissang closed this as completed Nov 28, 2016
@codering
Copy link

codering commented Dec 8, 2016

@pissang 新版本初始化时指定heigth, width, 也会有警告有同样的警告信息,望fix。

@weieh
Copy link

weieh commented Feb 15, 2017

遇到同样的问题,页面初始化时定义了div的宽和高了 控制台还是提示Can't get dom width or height

@keyiis
Copy link

keyiis commented Feb 27, 2017

@pissang 希望ts文件能更新到最新版,0.0.5版本中 init 没有width和height

@keyiis
Copy link

keyiis commented Feb 27, 2017

@pissang 的确加了width和height 还是报同样的错误 Can't get dom width or height

100pah added a commit that referenced this issue Mar 1, 2017
@xuyang12
Copy link

@pissang echarts 3.5.1版本依然还是warning提示Can't get dom width or height

@hithto
Copy link

hithto commented Sep 14, 2017

一樣有問題 echarts.js:1618 Can't get dom width or height

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants