Hello, I'm trying to make a inventory system that uses the Panel node as inventory slots but they don't seem to be stretching according to the total size that is available to them. I have the container sizing propriety on stretch for horizontal and vertical so when I put the panel within a container it should just scale to the available space in the container. In this example I use a GridContainer that has a size based on how many panels I would like to place inside of it, lets say one panel should be 32x32 I want 3 rows of slots and 10 of them per row so the GridContainer will be 320x96.
When I'm on the editor it looks like the panels take the entirety of space . But on run time they end up slightly smaller leaving a small gap. Any clues on how to fix this? Using Godot 4.0 RC2
Changing the panel to have a minimum size seems to have sorted the issue, although no clue to why it didn't stretch completely in the container