From 697a2ae94e035fa73f84142c9d6675e6fb73a078 Mon Sep 17 00:00:00 2001 From: photonstorm Date: Fri, 17 Jun 2016 15:28:39 +0100 Subject: [PATCH] Fixed issue in Group.align where the cell wouldn't increase if `rows` was great than -1 --- README.md | 2 +- src/core/Group.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5756c364f..0603b0091 100644 --- a/README.md +++ b/README.md @@ -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 * * diff --git a/src/core/Group.js b/src/core/Group.js index fd2aa93c8..fa5817d42 100644 --- a/src/core/Group.js +++ b/src/core/Group.js @@ -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;