How to limit scroll container?

Godot Version

4.2.2

Question

I have a Texture Rect inside a scroll container but for some reason scrolling can cause the label to scroll off-screen leaving an empty space visible. Sometimes it’s even impossible to scroll back because there’s nothing visible to “grab” and scroll back on. I don’t want scroll bars visible, and they’re not, I’m just saying that’s not a viable solution here. There must be a way to limit how much a scroll container can scroll in either direction. Please help.

I figured it out. The scrollcontainer was set to Clip Contents Off, so it would just scroll forever, I guess. I intended for clip contents to be off so I could see the full expanse beyond the bounds but it also scrolls beyond the bounds, so it’s both visual and operational.