Skip to content

Commit 697a2ae

Browse files
committed
Fixed issue in Group.align where the cell wouldn't increase if rows was great than -1
1 parent effb975 commit 697a2ae

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ You can read all about the philosophy behind Lazer [here](http://phaser.io/news/
333333

334334
### Bug Fixes
335335

336-
*
336+
* Fixed issue in Group.align where the cell wouldn't increase if `rows` was great than -1
337337
*
338338
*
339339

src/core/Group.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,8 @@ Phaser.Group.prototype.align = function (rows, columns, cellWidth, cellHeight, p
775775
else
776776
{
777777
// We keep laying them out until we hit the column limit
778+
r.x += cellWidth;
779+
778780
if (r.x === w)
779781
{
780782
r.x = 0;

0 commit comments

Comments
 (0)