I have a control (a container) that I am instancing buttons into (as children) & out.
When I add a button, the control resizes automatically to increase in size & fit that button.
However, when I remove a button the control stays the same large size & doesn't shrink to fit the existing buttons again.
I tried making it shrink back by saving the buttons' info, deleting the control, creating a new one, then adding the buttons back with their info so it appears the control has shrunk. This is very ineffective, and there must be a better way to do it.
There doesn't seem to be a
redraw() function that would do fit the size back :( .