Having issue with scrolling frame

i am cloning frames into a scrolling frame and what happens is the scrolling frame size either will cut off the items or it will just be a very long frame and not be able to scroll. does anyone have any ideas?

U have ScrollingFrame.ClipDescendants set to true?

3 Likes

What you need to do is make it so that every new child the scrolling frame will re-adjust the canvas size. Are you perhaps using a UIListLayout or a UIGridLayout?

1 Like

Increase the CanvasSize of ScrollingFrame like 0,0,10,0 or 0,0,50,0 or whatever you like.

1 Like

yeah.
dfghsdfhdfghdfghdfsgsdfgsdfg

Can u provide an image for visualization?

1 Like

Maybe show the explorer?, Also the frames could be too big or not be the same scaling as the scrolling frame.

1 Like

yeah i’m using a ui grid layout. i just set the automatic size to none and it fixed it for now. but i don’t have as many items as i used to being cloned… so what was happening before when i had say 20 to 30 items being cloned… that’s when it would cut off. so i set automatic size to y and then it would no longer cut off but it would just be one long frame. no scroll

yeah hold up.
llllllllllllllllllllllllllllllll

okay guys… it’s fixed. i have no idea how. because i set automatic size to none and it’s actually back at y now. but i will send screenshot of my settings.


no idea bro. but it just started working randomly.

does anyone have a um. solution to how to make it to where if there is only a few items being cloned in that the scrolling enabled is false? or should i just code that bit of logic.

Great that its working now, You could try to figure out what the solution was so you can set it as the solution for others with the same issue to see

1 Like

i have no idea. did you see the screenshot? it was the exact settings for when it wasn’t working before.

Prolly code it imo, also glad to c tht the issue has been solved

2 Likes

okay i just coded it haha. thanks everybody

Set the scrolling frame’s ‘AutomaticCanvasSize’ property to ‘X’, ‘Y’ or ‘XY’ depending on how you want the contained frames to be displayed, i.e; in a row, in a column or in both, then set the scrolling frame’s ‘CanvasSize’ property to UDim2.new(0, 0, 0, 0).

1 Like