diff --git a/examples/display/fullscreen.js b/examples/display/fullscreen.js index 5c5932f8d..d02dd75ce 100644 --- a/examples/display/fullscreen.js +++ b/examples/display/fullscreen.js @@ -18,7 +18,7 @@ function create() { // Keep original size // game.stage.fullScreenScaleMode = Phaser.StageScaleMode.NO_SCALE; // Maintain aspect ratio - game.stage.fullScreenScaleMode = Phaser.StageScaleMode.NO_SCALE; + game.stage.fullScreenScaleMode = Phaser.StageScaleMode.SHOW_ALL; game.input.onDown.add(gofull, this); diff --git a/src/system/StageScaleMode.js b/src/system/StageScaleMode.js index 70079717b..fd5588854 100644 --- a/src/system/StageScaleMode.js +++ b/src/system/StageScaleMode.js @@ -268,7 +268,7 @@ Phaser.StageScaleMode.prototype = { } else if (element['mozRequestFullScreen']) { - element['mozRequestFullScreen'](); + element.parentNode['mozRequestFullScreen'](); } else if (element['webkitRequestFullScreen']) {