Fix grid default placement

The grid doesn't check if items are too large to fit on the row currently being filled before placing them.