mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Changing the radius
of an Arc Game Object wouldn't update the size, causing origin issues. It now updates the size and origin correctly in WebGL. Fix #4542
This commit is contained in:
parent
515adc737d
commit
458c592596
2 changed files with 3 additions and 0 deletions
|
@ -120,6 +120,7 @@ The following changes took place in the Pointer class:
|
|||
* The ScaleManager full screen call had an arrow function in it. Despite being within a conditional block of code it still broke really old browsers like IE11, so has been removed. Fix #4530 (thanks @jorbascrumps @CNDW)
|
||||
* `Game.getTime` would return `NaN` because it incorrectly accessed the time value from the TimeStep.
|
||||
* Text with a `fixedWidth` or `fixedHeight` could cause the canvas to be cropped if less than the size of the Text itself (thanks @rexrainbow)
|
||||
* Changing the `radius` of an Arc Game Object wouldn't update the size, causing origin issues. It now updates the size and origin correctly in WebGL. Fix #4542 (thanks @@PhaserEditor2D)
|
||||
|
||||
### Examples, Documentation and TypeScript
|
||||
|
||||
|
|
|
@ -164,6 +164,8 @@ var Arc = new Class({
|
|||
{
|
||||
this.geom.radius = value;
|
||||
|
||||
this.setSize(value, value);
|
||||
this.updateDisplayOrigin();
|
||||
this.updateData();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue