Fixed positioning bug in button.

This commit is contained in:
2019-08-08 14:32:55 +02:00
parent f5cf8115af
commit d48139c40f
69 changed files with 90 additions and 83 deletions
+2 -2
View File
@@ -436,8 +436,8 @@ export default class Button extends PIXI.Container {
//--------------------
if (this.badge) {
this.removeChild(this.badge)
const width = this.width
const height = this.height
const width = this._width
const height = this._height
this.addChild(this.badge)
const badge = this.badge