-
Notifications
You must be signed in to change notification settings - Fork 7.1k
scale.mode in game config is ignored #5970
Copy link
Copy link
Closed
Labels
Description
Version
- Phaser Version: v3.60.0-beta.4 (063e8c7)
Description
If you create a game with a config value in scale.mode the value is ignored.
Example Test Code
new Phaser.Game({
scale: {
mode: Phaser.Scale.FIT,
width: 800,
height: 600
},
callbacks: {
postBoot: function (game) {
console.assert(
game.scale.scaleMode === Phaser.Scale.FIT,
"Expected scaleMode %s but got %s",
Phaser.Scale.FIT,
game.scale.scaleMode
);
}
}
});
Additional Information
The problem is in
because the desired properties are in scaleConfig.mode or config.scaleMode but not scaleConfig.scaleMode.
Reactions are currently unavailable