-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Open
Description
Version
- Phaser Version: 3.88.2
- Operating system: MacOS
- Browser: Chrome, Firefox, Safari, Edge
Description
When updating Phaser 3, rotating mobile so orientation changes between landscape/portrait or resizing the browser window does not fit/resize the canvas into the window bounds. It appears the problem starts with version 3.85.0 and continues in subsequent versions.
Example Test Code
To replicate the issue, I've used the Phaser 3 example at this URL:
- https://labs.phaser.io/edit.html?src=src/scalemanager/resize.js&v=3.85.0
- https://labs.phaser.io/edit.html?src=src/scalemanager/resize.js&v=3.90.0
To see the problem firsthand, open the developer console and switch the device orientation between landscape and portrait. The canvas element is expected to resize and fill its parent container, but it doesn't.
The expected behaviour at https://labs.phaser.io/edit.html?src=src/scalemanager/resize.js&v=3.80.0
DevModeChris
Metadata
Metadata
Assignees
Labels
No labels