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

Updated retina scale to allow rendering in IE10 and IE9. #1690

Merged
merged 1 commit into from
Nov 24, 2015
Merged

Updated retina scale to allow rendering in IE10 and IE9. #1690

merged 1 commit into from
Nov 24, 2015

Conversation

byCedric
Copy link

Stored pixel ratio in a variable with a fallback value for browsers that doesn't support window.devicePixelRatio fixing rendering issues for IE10 and IE9. (issue #1622)

The old code referenced window.devicePixelRatio multiple times without using fallbacks for undefined values. This resulted in multiply with 0, setting width and height to 0 on old browsers.

…hat doesn't support `window.devicePixelRatio` fixing rendering issues for IE10 and IE9. (issue #1622)
@etimberg
Copy link
Member

Looks good! Thanks @byCedric

etimberg added a commit that referenced this pull request Nov 24, 2015
Updated retina scale to allow rendering in IE10 and IE9.
@etimberg etimberg merged commit e6ea34e into chartjs:v2.0-dev Nov 24, 2015
@byCedric byCedric deleted the fix/canvas-dimensions-ie10-ie9 branch November 24, 2015 13:01
@Aaronaja
Copy link

Aaronaja commented Dec 5, 2016

Hi guys,

After looking and trying many things I fixed the issue for v1 in ie9 for my project. I had some console.log that was making the page not to show the graph until I press F12 in the browser.

If that can help anyone with the same scenario.

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.

3 participants