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

Change location of rect in 1x1 case #2817

Merged
merged 1 commit into from
Mar 11, 2016

Conversation

asteriskman7
Copy link
Contributor

As can be seen in this jsfiddle, https://jsfiddle.net/asteriskman/kk6v0tu4/ , the optimized 1x1 rect was being placed incorrectly. It must be offset by -0.5 in the x and y direction to line up with other rects that are not subject to the 1x1 optimization.

As can be seen in this jsfiddle, https://jsfiddle.net/asteriskman/kk6v0tu4/ , the 1x1 rectangle was being placed incorrectly. It must be offset by -0.5 in the x and y direction to line up with other rects.
@asturur
Copy link
Member

asturur commented Mar 1, 2016

Could you please attach a screenshot of rect and spraybrush with and without the change? it looks good to me, just to be sure.

@asteriskman7
Copy link
Contributor Author

Yes, I will make appropriate screenshots.

@asteriskman7
Copy link
Contributor Author

Please review the screenshots here: http://imgur.com/a/Y7Ajg

@asturur
Copy link
Member

asturur commented Mar 11, 2016

@kangax this is ok, i'm gonna merge it.

asturur added a commit that referenced this pull request Mar 11, 2016
@asturur asturur merged commit ab47214 into fabricjs:master Mar 11, 2016
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.

2 participants