Skip to content

Commit 86e5f8e

Browse files
authored
Merge pull request phaserjs#4952 from zaniar/align-in-quickset-alias
Make Phaser.Display.Align.In.QuickSet accepts LEFT_BOTTOM, LEFT_TOP, RIGHT_BOTTOM, and RIGHT_TOP.
2 parents 8c39dea + 3714b49 commit 86e5f8e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/display/align/in/QuickSet.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ AlignInMap[ALIGN_CONST.RIGHT_CENTER] = require('./RightCenter');
1717
AlignInMap[ALIGN_CONST.TOP_CENTER] = require('./TopCenter');
1818
AlignInMap[ALIGN_CONST.TOP_LEFT] = require('./TopLeft');
1919
AlignInMap[ALIGN_CONST.TOP_RIGHT] = require('./TopRight');
20+
AlignInMap[ALIGN_CONST.LEFT_BOTTOM] = AlignInMap[ALIGN_CONST.BOTTOM_LEFT];
21+
AlignInMap[ALIGN_CONST.LEFT_TOP] = AlignInMap[ALIGN_CONST.TOP_LEFT];
22+
AlignInMap[ALIGN_CONST.RIGHT_BOTTOM] = AlignInMap[ALIGN_CONST.BOTTOM_RIGHT];
23+
AlignInMap[ALIGN_CONST.RIGHT_TOP] = AlignInMap[ALIGN_CONST.TOP_RIGHT];
2024

2125
/**
2226
* Takes given Game Object and aligns it so that it is positioned relative to the other.

0 commit comments

Comments
 (0)