-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
Crash when graph get's resized to zero height #200
Comments
Thanks for the bug report! We’ll look into it. |
Gowsky
added a commit
that referenced
this issue
Mar 11, 2023
Gowsky
added a commit
that referenced
this issue
Mar 11, 2023
…ts-resized-to-zero-height Fix a crash occurring when chart bounds are invalid #200
Also causing crashes for me. Trying to use AnimatedVisibility() with the composable chart and they don't seem to get along Edit: I fixed it for my situation by wrapping the Chart() inside a Box() that is set to the size I need the chart to eventually resize to |
Vico 1.6.5, which is now rolling out, resolves this issue. Thanks again for the report! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I Just placed a graph inside my layout and my layout is collapsible and resizes its content. If I place your graph inside it it crashes (when it gets resized to 0, because it tries to call
coerceIn
with an empty or range).It's probably a rare use case, but the graph should at least not crash if it gets resized to a zero height... My suggestion is to use 0 in such a case instead of
coerceIn
which in case of the exception I see below would be the correct y value if the graph is to small to draw anything on the y axis anyway... Or alternatively skip the drawing at all...Version:
compose-m3:1.6.4
Code
Stacktrace
The text was updated successfully, but these errors were encountered: