ui
ui copied to clipboard
Bug: rotating an `Input` causes it and its parent(s) to get `Infinity` as their global bounds
Expected Behavior
The rotation should not cause the bounds to stretch to Infinity
Current Behavior
Setting .rotation
on an Input
causes input.getBounds()
to stretch to Infinity
Possible Solution
Steps to Reproduce
const t = new Input({
bg: new PIXI.Graphics(),
placeholder: 'someText',
value: 'Excellent Text',
textStyle: {
fonFamily : 'Arial'
fill: 0xffffff
},
align: 'left',
maxLength: 255
})
const c = new Container();
c.addChild(t)
t.rotation += 0.1; //this will cause `c.width` to equal infinity
Environment
- version: v8.0.4
- Browser & Version: Chrome 122
- OS & Version: Fedora 39