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 iframe resize handler when re-attached to DOM #3527

Merged
merged 1 commit into from
Oct 31, 2016

Conversation

simonbrunel
Copy link
Member

@simonbrunel simonbrunel commented Oct 29, 2016

When the iframe is attached to the DOM, its content is reloaded (invaliding the resize listener) so make sure to install the handler after the iframe is loaded. Optimize resize events by throttling resize process until the next animation frame. Rewrite the unit test "waitForResize" method, the previous one (timeout) was too weak and most tests was failing on FF.

Fixes #3521

@simonbrunel simonbrunel added this to the Version 2.4 milestone Oct 29, 2016
When the iframe is attached to the DOM, its content is reloaded (invaliding the resize listener) so make sure to install the handler after the iframe is loaded. Optimize resize events by throttling resize process until the next animation frame. Rewrite the unit test "waitForResize" method, the previous one (timeout) was too weak and most tests was failing on FF.
@simonbrunel simonbrunel merged commit 5012dcb into chartjs:master Oct 31, 2016
@simonbrunel simonbrunel deleted the fix/3521 branch October 31, 2016 07:47
exwm pushed a commit to exwm/Chart.js that referenced this pull request Apr 30, 2021
When the iframe is attached to the DOM, its content is reloaded (invaliding the resize listener) so make sure to install the handler after the iframe is loaded. Optimize resize events by throttling resize process until the next animation frame. Rewrite the unit test "waitForResize" method, the previous one (timeout) was too weak and most tests was failing on FF.
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.

None yet

2 participants