ScrollContainer should only have one child and its size.y should be the desired max height. If you add a VBoxContainer as a child of the ScrollContainer and add the other nodes as children of the VBoxContainer, it should work as you described. Although, you may have to adjust some size flags.
Yes, I actually do that, but for some reason forgot to mention it My bad!
But it still doesn’t solve my issue because sometimes the auto-sizing with containers, and changing min size doesn’t work properly together. I think I need to figure out what happens when exactly in a container. Maybe sort_children or pre_sort_children signal can help.
I’ll send more details once I’m back checking that. I appriciate the response!
So the scroll container is inside another container and it needs to update custom_minimum_size based on its contents? If that’s the case, I just tested and confirmed the following solution.