[Phaser CE] HTML Popup InputBox with Scaling

#1

Derived from https://phaser.discourse.group/t/html-popup-inputbox-with-scaling-for-v3/1354 porting to Phaser CE.

Because v2’s onSizeChange does not trigger if only the window resized while not affecting the canvas, it requires a work around using
window.addEventListener("resize", () => setTimeout(() => handleScale(), 100));
Not sure if there is a better way doing this.

Best practices- GUI
#2

Your example does not work unless I set the JavaScript Preprocessor to Babel in the Pen’s Settings.

#3

I think Code Pen site is currently having some issues, it works on this page though without going directly to Code Pen

#4

You’re right! My example does not work either, at the moment. :expressionless: