We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f61040d + 7593a80 commit 6bc077dCopy full SHA for 6bc077d
1 file changed
src/actions/GridAlign.js
@@ -65,6 +65,26 @@ var GridAlign = function (items, options)
65
// We keep laying them out vertically until we've done them all
66
tempZone.y += cellHeight;
67
}
68
+ else if (heightSet && !widthSet)
69
+ {
70
+ // We keep laying them out until we hit the column limit
71
+ cy += cellHeight;
72
+ tempZone.y += cellHeight;
73
+
74
+ if (cy === h)
75
76
+ cy = 0;
77
+ cx += cellWidth;
78
+ tempZone.y = y;
79
+ tempZone.x += cellWidth;
80
81
+ if (cx === w)
82
83
+ // We've hit the column limit, so return, even if there are items left
84
+ break;
85
+ }
86
87
88
else
89
{
90
// We keep laying them out until we hit the column limit
0 commit comments