mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Fixed issue in Group.align where the cell wouldn't increase if rows
was great than -1
This commit is contained in:
parent
effb975a25
commit
697a2ae94e
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
*
|
||||
*
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue