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: Unset _resizeBeforeDraw before _resize() call to avoid possible recursion #11851

Merged
merged 3 commits into from
Aug 8, 2024

Conversation

CatchABus
Copy link
Contributor

@CatchABus CatchABus commented Aug 5, 2024

While using chart.js with NativeScript, we noticed a rare resize bug after few HMR updates.
More specifically, _resize() call ended up with a recursion (might be a platform-related issue causing retinaScale() to malfunction?).
After some digging, I managed to get rid of the issue by unsetting pending resize request earlier.

@CatchABus CatchABus changed the title fix: Unset _resizeBeforeDraw before _resize call to avoid possible recursion fix: Unset _resizeBeforeDraw before _resize() call to avoid possible recursion Aug 5, 2024
@LeeLenaleee LeeLenaleee merged commit f3f84fd into chartjs:master Aug 8, 2024
8 checks passed
@LeeLenaleee LeeLenaleee added this to the 4.5.0 milestone 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

Successfully merging this pull request may close these issues.

3 participants