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: update coords after changing properties #22

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: update coords after changing properties
Resolves: #21
  • Loading branch information
Dongsik Yoo committed Sep 5, 2017
commit 78a46f2335525292b1bcce1b923aef548f710b4c
4 changes: 4 additions & 0 deletions src/js/graphics.js
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,8 @@ class Graphics {

object.set(clone);

object.setCoords();

this.getCanvas().renderAll();

return clone;
Expand Down Expand Up @@ -665,6 +667,8 @@ class Graphics {
top: y + diffY
});

targetObj.setCoords();

return true;
}

Expand Down