mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
Calling Ellipse.setSize will internally call updateDisplayOrigin to retain position
This commit is contained in:
parent
05f3cf6ee2
commit
a8724b88d8
1 changed files with 2 additions and 0 deletions
|
@ -130,6 +130,8 @@ var Ellipse = new Class({
|
|||
this.geom.setPosition(width / 2, height / 2);
|
||||
this.geom.setSize(width, height);
|
||||
|
||||
this.updateDisplayOrigin();
|
||||
|
||||
return this.updateData();
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue