Skip to content

Commit 3018eae

Browse files
committed
Setting forceMinimumDocumentHeight default to false. This is an iOS edge-case and messes with desktop browsers.
Fix phaserjs#1399
1 parent 9d79605 commit 3018eae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/ScaleManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ Phaser.ScaleManager = function (game, width, height) {
442442
*
443443
* @property {?Phaser.Point} [scrollTo=(auto)] - If specified the window will be scrolled to this position on every refresh.
444444
*
445-
* @property {boolean} [forceMinimumDocumentHeight=true] - If enabled the document element's minimum height is explicity set on updates.
445+
* @property {boolean} [forceMinimumDocumentHeight=false] - If enabled the document elements minimum height is explicity set on updates.
446446
*
447447
* @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.
448448
*/
@@ -451,7 +451,7 @@ Phaser.ScaleManager = function (game, width, height) {
451451
orientationFallback: null,
452452
noMargins: false,
453453
scrollTo: null,
454-
forceMinimumDocumentHeight: true,
454+
forceMinimumDocumentHeight: false,
455455
canExpandParent: true
456456
};
457457

0 commit comments

Comments
 (0)