|Topic was automatically imported from the old Question2Answer platform.
I have a terrible Issue of Panel Container not keeping its anchors after visibility is changed.
He has a Label as a child, and some Panels. It is a known issue that text resizes Label along with its parents, but removing the text doesn’t make them shrink back. It requires to manually be resized by setting rect_size to minimum rect size. However visibility goes insane with this setup - whenever Panel Container is manually resized and visibility is changed - Panel Container shifts position to the left. This happens on all possible size flags combinations, with pivot set to middle of the node, anchor to the top center, grow directions to BOTH. Simple resizing node works fine, simply changing visibility also works, only when both are applied ( regardless of calling order ) shifting happens. It is not possible to simulate in editor, runtime only.