I have an hboxcontainer with 3 control node children. They are each set to fill and expand. While in the editor, if I change the visibility of one to off, the other two will expand to fill in the space. Likewise when I turn it back on, the other two shrink. However, when I change to visibility in code during runtime, they don't update their rect_size.
The children start with visibility off, except the first child. I've tried turning that off too.
I am changing visibility using .visible = true.
I'm avoiding hard coding rect_size so that they will easily adjust with screen size.
I've tried using NOTIFICATION, though I might be using it wrong. I've tried sort_queue on the hboxcontainer after making them visible. I've tried to call draw() and update() to them as well, though I could have done that wrong too.
I'm hoping this is just an obvious oversight on my part and not a limitation of the engine.