1212* The Game size is the logical size of the game; the Display canvas has size as an HTML element.
1313*
1414* The calculations of these are heavily influenced by the bounding Parent size which is the computed
15- * dimenstions of the Display canvas's Parent container/element - the _effective CSS rules of the
15+ * dimensions of the Display canvas's Parent container/element - the _effective CSS rules of the
1616* canvas's Parent element play an important role_ in the operation of the ScaleManager.
1717*
1818* The Display canvas - or Game size, depending {@link #scaleMode} - is updated to best utilize the Parent size.
@@ -288,7 +288,7 @@ Phaser.ScaleManager = function (game, width, height) {
288288 * If `targetElement` is _not_ the same element as {@link #fullScreenTarget}:
289289 * - After initialization the Display canvas is moved onto the `targetElement` for
290290 * the duration of the fullscreen mode, and restored to it's original DOM location when fullscreen is exited.
291- * - The `targetElement` is moved/reparanted within the DOM and may have its CSS styles updated.
291+ * - The `targetElement` is moved/re-parented within the DOM and may have its CSS styles updated.
292292 *
293293 * The behavior of a pre-assigned target element is covered in {@link Phaser.ScaleManager#fullScreenTarget fullScreenTarget}.
294294 *
@@ -432,7 +432,7 @@ Phaser.ScaleManager = function (game, width, height) {
432432 * Various compatibility settings.
433433 * A value of "(auto)" indicates the setting is configured based on device and runtime information.
434434 *
435- * A {@link #refresh} may need to be peformed after making changes.
435+ * A {@link #refresh} may need to be performed after making changes.
436436 *
437437 * @protected
438438 *
@@ -444,7 +444,7 @@ Phaser.ScaleManager = function (game, width, height) {
444444 *
445445 * @property {?Phaser.Point } [scrollTo=(auto)] - If specified the window will be scrolled to this position on every refresh.
446446 *
447- * @property {boolean } [forceMinimumDocumentHeight=false] - If enabled the document elements minimum height is explicity set on updates.
447+ * @property {boolean } [forceMinimumDocumentHeight=false] - If enabled the document elements minimum height is explicitly set on updates.
448448 * The height set varies by device and may either be the height of the window or the viewport.
449449 *
450450 * @property {boolean } [canExpandParent=true] - If enabled then SHOW_ALL and USER_SCALE modes can try and expand the parent element. It may be necessary for the parent element to impose CSS width/height restrictions.
@@ -479,7 +479,7 @@ Phaser.ScaleManager = function (game, width, height) {
479479 this . _fullScreenScaleMode = Phaser . ScaleManager . NO_SCALE ;
480480
481481 /**
482- * If the parent container of the Game canvas is the browser window itself (ie . document.body),
482+ * If the parent container of the Game canvas is the browser window itself (i.e . document.body),
483483 * rather than another div, this should set to `true`.
484484 *
485485 * The {@link #parentNode} property is generally ignored while this is in effect.
@@ -766,6 +766,8 @@ Phaser.ScaleManager.prototype = {
766766 // Don't use updateOrientationState so events are not fired
767767 this . screenOrientation = this . dom . getScreenOrientation ( this . compatibility . orientationFallback ) ;
768768
769+ this . grid = new Phaser . FlexGrid ( this , this . width , this . height ) ;
770+
769771 } ,
770772
771773 /**
@@ -875,8 +877,6 @@ Phaser.ScaleManager.prototype = {
875877
876878 this . _gameSize . setTo ( 0 , 0 , newWidth , newHeight ) ;
877879
878- this . grid = new Phaser . FlexGrid ( this , newWidth , newHeight ) ;
879-
880880 this . updateDimensions ( newWidth , newHeight , false ) ;
881881
882882 } ,
@@ -977,7 +977,7 @@ Phaser.ScaleManager.prototype = {
977977 *
978978 * This also triggers updates on {@link #grid} (FlexGrid) and, if in a RESIZE mode, `game.state` (StateManager).
979979 *
980- * @method Phaser.ScaleMager #signalSizeChange
980+ * @method Phaser.ScaleManager #signalSizeChange
981981 * @private
982982 */
983983 signalSizeChange : function ( ) {
0 commit comments