Fixed positioning bug in button.
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
@@ -514,7 +514,7 @@ export default class ButtonGroup extends PIXI.Container {
|
||||
// stack!
|
||||
const distanceToTop = this.container.y
|
||||
const distanceToBottom = this.opts.maxHeight - this.container.y - this.__initHeight
|
||||
|
||||
|
||||
if (distanceToTop > 0) {
|
||||
throwProps.y.end = 0
|
||||
} else if (distanceToBottom > 0) {
|
||||
|
||||
Reference in New Issue
Block a user