Fixed issue in Group.align where the cell wouldn't increase if rows was great than -1

This commit is contained in:
photonstorm 2016-06-17 15:28:39 +01:00
parent effb975a25
commit 697a2ae94e
2 changed files with 3 additions and 1 deletions

View file

@ -333,7 +333,7 @@ You can read all about the philosophy behind Lazer [here](http://phaser.io/news/
### Bug Fixes
*
* Fixed issue in Group.align where the cell wouldn't increase if `rows` was great than -1
*
*

View file

@ -775,6 +775,8 @@ Phaser.Group.prototype.align = function (rows, columns, cellWidth, cellHeight, p
else
{
// We keep laying them out until we hit the column limit
r.x += cellWidth;
if (r.x === w)
{
r.x = 0;