Fixed vertical button group bug.
This commit is contained in:
parent
caffee4b15
commit
56910a8c58
2
dist/iwmlib.pixi.js
vendored
2
dist/iwmlib.pixi.js
vendored
@ -3443,7 +3443,7 @@
|
||||
if (this.__initHeight > this.opts.maxHeight) {
|
||||
// stack!
|
||||
const distanceToTop = this.container.y;
|
||||
const distanceToBottom = this.opts.maxHeight - this.container.y - this.container.height;
|
||||
const distanceToBottom = this.opts.maxHeight - this.container.y - this.__initHeight;
|
||||
|
||||
if (distanceToTop > 0) {
|
||||
throwProps.y.end = 0;
|
||||
|
@ -505,7 +505,7 @@ export default class ButtonGroup extends PIXI.Container {
|
||||
if (this.__initHeight > this.opts.maxHeight) {
|
||||
// stack!
|
||||
const distanceToTop = this.container.y
|
||||
const distanceToBottom = this.opts.maxHeight - this.container.y - this.container.height
|
||||
const distanceToBottom = this.opts.maxHeight - this.container.y - this.__initHeight
|
||||
|
||||
if (distanceToTop > 0) {
|
||||
throwProps.y.end = 0
|
||||
|
Loading…
Reference in New Issue
Block a user