How do I keep things in the bounds of scrolling frames when automatic canvas size is enabled?

Here’s an image of the issue I’m having in all sorts of places within my game:
image

Scrolling frame properties:
image

The scrolling frame only starts with a UIStroke and UIListLayout within it, but when things are added and it starts increasing the canvas size, it always cuts off the last UI element that’s within it.

from my past experiences with scrolling frames, you dont

bpScroll.CanvasSize = UDim2.new(0.1 * battlepassTier, 0, 0, 0)

I got this to work, I added 10 elements in the frame, found the canvas size that fits them perfectly (which happened to be 1), then divided that by 10. Now I multiply the number of elements within the scrollingframe by 0.1 every time I add something to it, and it seems to work fine.

1 Like