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

Fixed images being used as a pointStyle not rendering at custom dimensions #4254

Merged
merged 1 commit into from
May 13, 2017
Merged

Fixed images being used as a pointStyle not rendering at custom dimensions #4254

merged 1 commit into from
May 13, 2017

Conversation

jgmcelwain
Copy link
Contributor

Added width + height arguments to ctx.drawImage when using an image as a pointStyle.

Previous functionality meant that images would be drawn at their source file size regardless of whether custom width or height properties were set.

Previous functionality meant that images would be drawn at their source file size regardless of whether custom width or height properties were set.
@etimberg
Copy link
Member

Looks like a good fix. Is there an open issue for this already?

@jgmcelwain
Copy link
Contributor Author

I believe #3681 is related, but is closed

@etimberg etimberg merged commit 0bbc3fa into chartjs:master May 13, 2017
@etimberg etimberg added this to the Version 2.6 milestone May 13, 2017
@jgmcelwain jgmcelwain deleted the point-style-image-fix branch May 14, 2017 19:08
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