Skip to content

Commit f02325f

Browse files
authored
Merge pull request phaserjs#5386 from PhaserEditor2D/patch-1
Updates geom, width and height of the Ellipse GO
2 parents 1b434d7 + 60541e8 commit f02325f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/gameobjects/shape/ellipse/Ellipse.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ var Ellipse = new Class({
125125
*/
126126
setSize: function (width, height)
127127
{
128+
this.width = width;
129+
this.height = height;
130+
this.geom.setPosition(width / 2, height / 2);
128131
this.geom.setSize(width, height);
129132

130133
return this.updateData();

0 commit comments

Comments
 (0)