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

obj.center() does not center object on canvas when the canvas has viewportTransform set. #1641

Closed
teewuane opened this issue Sep 5, 2014 · 2 comments

Comments

@teewuane
Copy link

teewuane commented Sep 5, 2014

Create an object and add it to a canvas that has viewportTransform defined. Then try to center that object. The object is not centered. (close, but not quite) If you set the canvas zoom back to it's default value of 1 it will zoom in and the rectangle is then centered but it's now zoomed back in. canvas.setZoom(1);

See example here: http://jsfiddle.net/teewuane/c16rjtj7/1/

@asturur
Copy link
Member

asturur commented Apr 1, 2015

please follow #2021 for update of this old question.

@kangax
Copy link
Member

kangax commented Apr 6, 2015

Duplicate of #2021

@kangax kangax closed this as completed Apr 6, 2015
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 a pull request may close this issue.

3 participants