-
-
Notifications
You must be signed in to change notification settings - Fork 836
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
Default height no longer working in 2.8 #176
Comments
Is a webpackbin ok ? 2.8.2 - Not working 2.7.2 - Working Thanks! |
On a closer look while making the repos, it seems the cause is this
In 2.7.2, when changing from display: none to anything else, the chart still renders, in 2.8.2, unless I manually edit the height of the chart (simply disabling 100% on height on the chart div), it doesn't show up. I'm not sure if I'm using it wrong or that's how it's supposed to work though. |
With the 2.8.x release I've added dynamic inline styles to the outer container. Adding However a quick fix for you would be to pass |
The quick fix works great, thanks! I've added an empty styles object as a prop to the chart object I'm extending to avoid adding the tag to every chart in the project though. Seems to work as expected! |
Ok, figured out the problem. You set a class with a But, as you were hiding your component with I removed the default styles as they seem to cause some trouble. So it should be fixed in the next version btw. you should consider using If you have 200 charts but alle hidden with |
This will fix #176 Signed-off-by: Jakub Juszczak <netghost03@gmail.com>
Thanks, I'll update to the next version once it's out! I ran into this while using the Tabs component from UIV, it seems to be using |
Expected Behavior
Charts to be rendered even if the chart is inside an element which has display:none set.
Actual Behavior
Charts not being rendered unless the element they are inside is visible at the moment the data is being set
This is working fine in 2.7.2 but in 2.8.2 it seems the default height of the component is not being set anymore and the canvas has 0 height unless it is visible when the data is being set. I've checked with 2.8.1 and 2.8 and they're both behaving the same, 2.7.2 is working fine though.
Environment
The text was updated successfully, but these errors were encountered: