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

Chart scales down to nothing, restores to full size, and loops through rescaling with combination of browser and OS zoom #11865

Closed
bobleap opened this issue Aug 16, 2024 · 2 comments

Comments

@bobleap
Copy link

bobleap commented Aug 16, 2024

Expected behavior

When the following conditions are applied:

  • Chart is set to use 100% width
  • maintainAspectRatio is default/true
  • Chrome is zoomed to 90%
  • Windows 10/11 has "Make text bigger" feature to 150%
    the chart should scale as needed based on size of the parent container.

Current behavior

During the above conditions, the chart will start at the correct size and go into a loop of shrinking to nothing, restoring itself to full size, and shrinking again.

Reproducible sample

https://codepen.io/leelenaleee/pen/WNyJXEe

Optional extra steps/info to reproduce

  • Reduce zoom size in Chrome to 90%
  • Adjust Windows Display "Make text bigger" feature to 150%

Possible solution

No response

Context

A QA person had reported this situation with just the browser zoomed, but I have been unable to reproduce it without the corresponding operating system adjustment. It is an edge case -- trivial -- but thought to report it in case it appears under other conditions.

chart.js version

v4.4.3

Browser name and version

Chrome 126.0.6478.183

Link to your project

No response

@bobleap
Copy link
Author

bobleap commented Aug 16, 2024

bigger

shrink.mp4

@LeeLenaleee
Copy link
Collaborator

Duplicate of: #11612

@LeeLenaleee LeeLenaleee closed this as not planned Won't fix, can't repro, duplicate, stale Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants