Skip to content

Scale Manager fails to resize to full container #7213

@FranciscoCaetano88

Description

@FranciscoCaetano88

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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions