How to keep panel inside scroll area when panel is shrunk?
So I've set up a small window with a list of items that can increase and decrease, which respectively increases and decreases the windows size, however when I scroll to the bottom and remove items (as seen below), the scrolled panel won't adjust the position to keep itself aligned with the window (Even though I have it set to Clamped).
If enough items are removed this means i cant access the content at all, as its fully outside the window and hidden by the mask. I have the scrolled panel set to be aligned with the top of the window to prevent the same happening above and so when the list is populated its already scrolled to the top. Here are the window's settings if that's any use (the scrolled panel is just a panel with a vertical layout group and a content size fitter):
What changes can I make to ensure the scrolled panel doesn't leave the window?