It feels a bit unexpected that I can set row span to a greater number than the actual number of rows in the grid, especially in auto mode. In manual mode should it increase the row value on the parent?
We have a max on the <input> for the Row and Column controls so I think a sensible fix here would be to similarly set a max on the Row span and Column span controls.
The max needs to take into account the position of the grid item. For example if a grid item is in the second last column then its max column span should be 2.
It might be nice to have these controls automatically increase the parent grid's size one day but for now I think the important thing is that we're consistent across all of the grid controls. Right now the placement controls have a max but the span controls don't—weird!
Feedback from @jameskoster:
We have a
max
on the<input>
for the Row and Column controls so I think a sensible fix here would be to similarly set amax
on the Row span and Column span controls.The
max
needs to take into account the position of the grid item. For example if a grid item is in the second last column then its max column span should be 2.It might be nice to have these controls automatically increase the parent grid's size one day but for now I think the important thing is that we're consistent across all of the grid controls. Right now the placement controls have a max but the span controls don't—weird!