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

Make charts vertically responsive (#3105) #3326

Merged
merged 1 commit into from
Sep 23, 2016

Conversation

simonbrunel
Copy link
Member

Ensure that the hidden iframe is stretched vertically in order to detect height changes. Remove the classlist check/call since it was incorrectly spelled (should be classList), but also useless since the iframe has just been generated. Also remove the callback check: addResizeListener should never be called w/o a valid callback.

Unit tests are coming in another PR!

@simonbrunel
Copy link
Member Author

simonbrunel commented Sep 18, 2016

Added visibility: hidden.

Edit: removed visibility: hidden since it doesn't work on Firefox

Ensure that the hidden iframe is stretched vertically in order to detect height changes. Remove the classlist check/call since it was incorrectly spelled (should be classList), but also useless since the iframe has just been generated. Also remove the callback check: addResizeListener should never be called w/o a valid callback.
@simonbrunel simonbrunel added this to the Version 2.4 milestone Sep 22, 2016
@simonbrunel simonbrunel merged commit 84da2e0 into chartjs:master Sep 23, 2016
@simonbrunel simonbrunel deleted the fix/3105-responsive-height branch September 24, 2016 19:54
exwm pushed a commit to exwm/Chart.js that referenced this pull request Apr 30, 2021
Ensure that the hidden iframe is stretched vertically in order to detect height changes. Remove the classlist check/call since it was incorrectly spelled (should be classList), but also useless since the iframe has just been generated. Also remove the callback check: addResizeListener should never be called w/o a valid callback.
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