Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I limit the scrolling in a ScrollingFrame?

How can I make a ScrollingFrame only scroll to the furthest thing in the canvas (similar to ROBLOX's default chat)?

I made my own custom chat with a ScrollingFrame, but it has a lot of blank space in the canvas.

Any suggestions on how to do this?

Note: Changing the canvas size messes up the positioning of all the content inside of it. I don't want to have to deal with that.

1 answer

Couldn't you check the frames children with' for i,v in pairs' and then check which child is the lowest down. After finding that check the size of that child and cut it in half. add the half to the position of the child and then put that in as the max extents. I made something like this a while back but the math is strange. Roblox defiantly should put something in that is easier to edit.

Hope this helps! :)

2 comments

0

Thanks, but there is no property to have as the "max extent." Can you explain what "max extent" is?

0

Max extent would be Canvas Size

This discussion is preserved as it was. New answers, comments, and votes are closed.