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 setting border color/width as object #880

Merged
merged 3 commits into from Nov 27, 2012
Merged

Fix setting border color/width as object #880

merged 3 commits into from Nov 27, 2012

Conversation

kswedberg
Copy link
Contributor

Hope you don't mind that I did some linting and removed EOL whitespace, too. I put them in separate commits in case you didn't want to merge them in for whatever reason. In any case, the important change here is that I fixed a problem I noticed when trying to set the grid's border width using an object. Let me know if you have any questions.

* If either color or width is object, normalize the other to object
* Only draw each border if its width is greater than 0
* Set strokeStyle and lineWidth _before_ calling ctx.beginPath()
@ghost ghost assigned dnschnur Nov 26, 2012
@dnschnur
Copy link
Member

I don't mind at all, especially if they're in separate commits like this. I've been doing some cleanup as well, as I start working with new pieces of the codebase, and have plans, once we get 0.8 out the door, to do a complete lint and style-standardization pass.

I'll take a look at this and merge it later today; thanks for the submission!

dnschnur added a commit that referenced this pull request Nov 27, 2012
Fix setting border color/width as an object.
@dnschnur dnschnur merged commit 4fc5340 into flot:master Nov 27, 2012
dnschnur added a commit that referenced this pull request Nov 27, 2012
@kswedberg
Copy link
Contributor Author

Woohoo! Thanks so much, @dnschnur!

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