mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
Fixed small typo.
This commit is contained in:
parent
47e1b1b54b
commit
664c512a99
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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.
|
||||
<ul><li>It will place a re-calculated margin-left pixel value onto the canvas element which is updated on orientation/resizing.
|
||||
<li>It doesn't care about any other DOM element that may be on the page, it literally just sets the margin.</li></ul>
|
||||
* @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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue