scrollcontainers have a lot of “hidden functionality” that interact smartly with other elements.
because of this I find them very unpredictable.
I would recommend just making a container that can grow to the max size, and adding flex or grid styling to them.
Maui9 framework has this build into every page (because of full sized scroll areas with different background colors)