mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
Fix for #5019
This commit is contained in:
parent
f2bd22d581
commit
b4e1b5af77
1 changed files with 21 additions and 0 deletions
|
@ -65,6 +65,27 @@ var GridAlign = function (items, options)
|
|||
// We keep laying them out vertically until we've done them all
|
||||
tempZone.y += cellHeight;
|
||||
}
|
||||
else if (heightSet && !widthSet)
|
||||
{
|
||||
console.log('heighta göre set!');
|
||||
// We keep laying them out until we hit the column limit
|
||||
cy += cellHeight;
|
||||
tempZone.y += cellHeight;
|
||||
|
||||
if (cy === h)
|
||||
{
|
||||
cy = 0;
|
||||
cx += cellWidth;
|
||||
tempZone.y = y;
|
||||
tempZone.x += cellWidth;
|
||||
|
||||
if (cx === w)
|
||||
{
|
||||
// We've hit the column limit, so return, even if there are items left
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// We keep laying them out until we hit the column limit
|
||||
|
|
Loading…
Reference in a new issue