diff --git a/README.md b/README.md index 8e96ffd9..229f2f70 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ Version 1.0.7 (in progress in the dev branch) * Fixed a bug in the Sprite transform cache check that caused the skew/scale cache to get constantly invalidated - now only updates as needed, significant performance increase! * Brand new Sprite.update loop handler. Combined with the transform cache fix and further optimisations this is now much quicker to execute. * Made Sprite.body optional and added in checks, so you can safely null the Sprite body object if using your own physics system and not impact rendering. - +* Fixed typo in StageScaleMode so it's not pageAlignVeritcally any longer, but pageAlignVertically. * TODO: addMarker hh:mm:ss:ms diff --git a/src/system/StageScaleMode.js b/src/system/StageScaleMode.js index f154a142..e21657bb 100644 --- a/src/system/StageScaleMode.js +++ b/src/system/StageScaleMode.js @@ -50,12 +50,12 @@ Phaser.StageScaleMode = function (game, width, height) { this.pageAlignHorizontally = false; /** - * @property {boolean} pageAlignVeritcally - If you wish to align your game in the middle of the page then you can set this value to true. + * @property {boolean} pageAlignVertically - If you wish to align your game in the middle of the page then you can set this value to true. * @default */ - this.pageAlignVeritcally = false; + this.pageAlignVertically = false; /** * @property {number} minWidth - Minimum width the canvas should be scaled to (in pixels). @@ -444,7 +444,7 @@ Phaser.StageScaleMode.prototype = { } } - if (this.pageAlignVeritcally) + if (this.pageAlignVertically) { if (this.height < window.innerHeight && this.incorrectOrientation == false) {