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

Fix: Negative SVG values in Graphic Context #3673

Merged
merged 1 commit into from
Dec 15, 2023
Merged

Conversation

djbarnwal
Copy link
Member

For some initial renders of the chart, we were seeing negative width value error in the console.
This was one of those bugs which took hours to figure out but required a one line change. This occurs when workspaceWidth is still being computed and has a value of 0.

I tried pulling out the ternary operators out of the HTML block and into the scripts. Somehow that made the charts fixed a single smaller width. Not sure what is exactly going wrong and why reactivity is not working there properly. Nevertheless have made changes which fixes the bug/error.

@djbarnwal djbarnwal self-assigned this Dec 9, 2023
@AdityaHegde AdityaHegde merged commit 2398551 into main Dec 15, 2023
2 checks passed
@AdityaHegde AdityaHegde deleted the fix/negative-svg-value branch December 15, 2023 14:09
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

Successfully merging this pull request may close these issues.

2 participants