ScrollingFrame Canvas Size problem

Hello!
I have 1 problem with a Scrolling Frame and UIListLayout.
So, I’m using this script:

local ListLayout = Scroll:WaitForChild("UIListLayout") --Scroll is a ScrollingFrame
					
Scroll.CanvasSize = UDim2.new(0, 0, 0, ListLayout.AbsoluteContentSize.Y * 120)

To resize the scrolling frame canvas, based on the amount of objects in it. But, the problem is, more Objects I add, more the last object is getting “cut” until it actually not visible.
And the size of the object is Offset and I’m using UIScale in the ScreenGui to resize that.

Here’s how the problem looks like:
https://gyazo.com/f1f044c68f9ffa73d4f341d4c4da4414

If you can help me, then please help, I will much appreciate it.
Thanks for reading!

And why exactly, do you not want to use ScrollingFrame.AutomaticCanvasSize?

Here’s another useful article on AutomaticCanvasSize: UI Automatic Size

1 Like

Oh, i set it to Y, and works perfectly for me! Thank you alot! If i knew about this thing before

Hi, you may want to move this to the #help-and-feedback:art-design-support category as it deals more with UI then scripting. Good luck on your game! :smiley: