- Enter a world and place a Requester chest
- Hover over the chest and run
- /c chest = game.player.selected
- Create a mod GUI inventory with the commands
- /c frame = game.player.gui.screen.add{type = "frame", caption = "Test"}
- /c inv = frame.add{type = "inventory", slots_per_row = 20}
- /c inv.inventory = chest.get_inventory(defines.inventory.logistic_container_trash)
Changing the inventory width to a smaller value to require more rows produces the expected behaviour, where placeholder slots are drawn only to fill the remainder of rows.
/c inv.slots_per_row = 12

