[Phaser CE] HTML Popup InputBox with Scaling

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.

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

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

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