-
Notifications
You must be signed in to change notification settings - Fork 251
Fixed popup chart bugging (#6351) #6352
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
Conversation
for more information, see https://pre-commit.ci
|
@ggggg Thank you for this PR. I was able to replicate this issue and your fix looks like it works to solve the flickering problem. There's the bit where it's setting the style of the canvas rendered by the Bar component to style={{margin: "10px"}}Then the problem is fixed as well. I think what is happening is that setting the display to "inline-flex" permits the browser to resize the canvas element. But the react-chartjs-2 library is also dynamically resizing the canvas element and so it flickers back and forth since the browser and the js library have a slightly different idea of what the canvas size should be. Setting overflow to hidden works as well because I think it prevents the browser from triggering a resize since it just hides the extra content instead. However, I'd rather fix the content at the "source" by not adding the unnecessary Does that make sense to you? Do you mind trying out both solutions and confirming whether or not they work for you as well? Thanks! |
|
@ggggg I'd like to include this in the next release, scheduled for the end of the week. Please let me know if you have any concerns with my suggestions, otherwise I'm going to resolve this in the next few days. |
|
Yeah, I think it works too! |
|
thanks @ggggg I'll make sure this gets into the next release. And thanks again for the bug report! |
|
@ggggg would you like to be added to the contributor's list? If so, what name should I add? |
|
I would love that, my full name is Ido Ben Haim. |
|
Thanks @ggggg! |
Motivation and Context
This fixes a small visual bug (see #6351)
Your Changes
Description:
Disabled overflow scrolling for the data-chart-container class as it is not needed and there is no overflow.
Type of change (select all that apply):
Testing
Questions and Comments (if applicable)
Checklist
Pull request to make documentation changes (if applicable)