azerion / phaser-input

Adds input boxes to Phaser like CanvasInput, but also works for WebGL and Mobile, made for Phaser only.
MIT License
203 stars 64 forks source link

Multiple inputs will all have content width as the last created input #5

Closed squilibob closed 7 years ago

squilibob commented 8 years ago

I created several inputs of varying widths, the last being a small width. All the inputs would then cut off the inputted text at the width of that small width input. If any input is larger in width than the last created input then it will be cut off at that width of the last created input.

AleBles commented 8 years ago

Good find! I'll have a look soon

squilibob commented 8 years ago

I have traced this problem back to type breaking the widths if it is assigned an unexpected value. I think you should validate type just in case.