This commit is contained in:
halilcakar 2020-08-20 15:27:29 +03:00
parent f2bd22d581
commit b4e1b5af77

View file

@ -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