-
Notifications
You must be signed in to change notification settings - Fork 637
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
打包后样式高度不是100% #149
Comments
改变下浏览器大小好像就会resize,变成正常的样子,初始化就会出先这样的问题,请问如何解决? |
你看下是不是宽高都是 100px?另外告知下 echarts 版本。 |
@hustcc 宽高都是100%,这三个表都是一个组件,每次都是最后一个样式会有问题,触发一下浏览器resize就会变回原样。 |
你从浏览器开发工具里面,看出问题的那个 dom 结构,看看渲染出来的宽高是不是 100 px。 之前也有遇到过类似的问题。 |
@hustcc 是的,在第一张图里面我就截了图,组件设置的高度是 100%, 然后生成的canvas父元素(组件子元素)高度就是100px了, 您看下。 |
hustcc
added a commit
that referenced
this issue
Mar 1, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
前面两个没问题,总是最后一个就不会计算高度,删掉一个的话就是第二个变成这样
用的dva框架
The text was updated successfully, but these errors were encountered: