I have updated the code here to use the master branch version to test game.resize() function here
The canvas is resized, but it seem phaser stage is not (you can see it by playing with the browser dimensions as my text is always centered in the browser window)
In canvas mode, i see the background-color get resized, but not in WebGL. Both modes show that the Phaser stage is not resized correctly.
Here is my setup code.
Thanks a bunch for your work!
Can you post your code for the Menu scene as well please.
This is working properly in 3.4. I've updated the example to show how to use it properly with a window event + tile sprite: http://labs.phaser.io/view.html?src=srcgame%20configgame%20resize.js
Yes it does!
Thanks a bunch Rich!
@photonstorm as of 3.19 I'm seeing "TypeError: game.resize is not a function"
Example from Phaser 3 website is currently broken: https://phaser.io/examples/v3/view/game-config/game-resize#