Is there a way to make a horizontally flexible grid (or any grid-like) layout to fill column-wise first?
The rule is basically:
- Check if items fit into a row, make new row if they don't (works as if the layout is
row wrapconstrained by container width) - Fill cells column-wise (works as if the layout is
column wrapconstrained into a given row amount decided on step #1)
With a decreasing container width, it visually work more or less like following:
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
-----------------------------
| 1 | 3 | 5 | 7 |
| 2 | 4 | 6 |
-------------------------
| 1 | 4 | 7 |
| 2 | 5 |
| 3 | 6 |
-----------------------
| 1 | 5 |
| 2 | 6 |
| 3 | 7 |
| 4 |