Setting column fill of grid panel programmatically

I’ve been having trouble dynamically adding items to a grid panel for a while now. I was able to reproduce the problem in a new 4.16 project. When trying to add a column fill of 1.0 and then adding a widget that only contains a button (filling the whole widget) nothing appears on screen. If I try this by setting the value of the column fill beforehand it works.

I added the project I used to reproduce this problem as an attachment.

Thanks for any suggestions.