-
Notifications
You must be signed in to change notification settings - Fork 0
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
SFD-98: Chart scaling on zoom bugfix #85
Conversation
16a8ddb
to
dff1f1d
Compare
ac51225
to
0b8b9b9
Compare
Just from a quick test of this myself, I'm still seeing an issue when it hits 400% zoom - I don't know if it's specific to my monitor resolution and scaling? (1920 x 1080 at 100%) Haven't reviewed the code but I wonder if it could be falling prey to the opposite max height check if that's not also scaled with the zoom factor. There's a definite snap back to a small size as you get to 400: 300%400% |
And strangely it seems fine if I scroll to 500% very quickly, I assume the debounce means the 400% state is missed. But if I roll back and forth at that point then 500% will be broken too. |
Ok thanks, I'll take a look. I was getting different degrees of 'squashedness' with the same zoom factor when trying to reproduce the bug so there's definitely something going on that I haven't pinned down. The scaling with zoom is applied after the screen height cap so hopefully that shouldn't be interfering. |
It looks like it's not scaling the chart if the screen is already zoomed when calculate is pressed either. It's not completely squashed for me but it's not as tall as it should be. |
This test also seemed to be broken. I think it should have failed after the changes and it passes when the 'extraHeight' is set to '0'.
76ec8b0
to
a93c77e
Compare
99b3985
to
f7e41db
Compare
f7e41db
to
58b30d1
Compare
This is no longer necessary now getChartHeight always returns a positive value.
bf9da17
to
86b4f39
Compare
Tested & Approved. |
SFD-98 Jira ticket
Scales the chart size with the browser zoom factor to fix a bug where the chart would become squashed when the browser zoom was increased.
Before fix:
After fix: