Open peter-rocchio opened 2 weeks ago
Probably related to #93386. That fixes it for grids, but not other containers.
I can change the other containers too, but should it be SortableVisbilityMode::VISIBLE
or SortableVisbilityMode::IGNORE
? I used VISIBLE
to fix the grids, but going through the others I see some use IGNORE
.
This happens to me in 4.2. I know there was some kind of workaround I had to do for an overlay.
I can change the other containers too, but should it be
SortableVisbilityMode::VISIBLE
orSortableVisbilityMode::IGNORE
? I usedVISIBLE
to fix the grids, but going through the others I see some useIGNORE
.
I think they should use VISIBLE in the minimum size checks so that it matches behavior from before #91613
Tested versions
System information
Windows 11 - Forward +
Issue description
Containers will correctly resize to fit their contents when in the editor and the first time they are made visible while the application is running. However, if the container is hidden, and then shown again, the container will shrink and not resize properly when shown again. This is easiest to see with panel containers.
![image](https://github.com/godotengine/godot/assets/25456663/6be1bfca-d662-430a-a402-2bdb412d2151)
Steps to reproduce
Minimal reproduction project (MRP)
container-visibility.zip