Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How can I limit the scrolling in a ScrollingFrame?

Asked by
nilVector 812 Moderation Voter
9 years ago

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

Log in to vote
2
Answered by
LostPast 253 Moderation Voter
9 years ago

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! :)

0
Thanks, but there is no property to have as the "max extent." Can you explain what "max extent" is? nilVector 812 — 9y
0
Max extent would be Canvas Size YellowoTide 1992 — 9y
Ad

Answer this question