I need some UI Help with Scroll Frames

So first, I don’t know if this is possible or not, but how the heck do I make a UI Scroll Frame end when the buttons within it end (reaches the last button down).

It would really help not just putting the scroll frame end 100 down.

Easiest way to do this is to add a UIListLayout or a UIGridLayout into the ScrollingFrame and set the ScrollingFrame’s CanvasSize to UDim2.new(0, Layout.AbsoluteContentSize.X, 0, Layout.AbsoluteContentSize.Y).

I have a UIGridLayout, but could you please explain that second part a bit more :confused:

UIListLayout and UIGridLayout have a property called “AbsoluteContentSize” which is just how much space all the content take up in the X and Y axis. ScrollingFrame’s have a property called “CanvasSize” which defines how big the Canvas should be. CanvasSize is defined as a UDim2 of (scaleX, offsetX, scaleY, offsetY). If you set the offset values to the corresponding AbsoluteContentSize values, you will get a ScrollingFrame that can only scroll as far as the content take up.

If you want to read more about this, you can look at this guide: