Unexpected padding added to bottom of window when moving element at runtime
-
I am dynamically adding and removing "Player" rows. Adding a row dynamically increases the height of the window. (It doesn't add enough bottom padding, but that can be fixed programmatically.)
When removing a player row, it doesn't decrease the height, but based on a line of code I added in the function for removing a player, it'll decrease the window height:
this->window()->resize(QSize(437, 1));(I think this decreases the height to its lowest possible amount.) However, there is still some height it adds, and I don't know where it's coming from. In the images, you can see it adds padding on the bottom when decreasing. (This padding is there when I go from 2 players to 9 players to 2 players.)
Where is this padding coming from? How do I remove it?
Also, I know the UI is weird. I have other improvements to the project to work on first.


