ScrollingFrame issue (?)

Basically, I keep player’s history inside a ScrollingFrame, but it can only fit 20 TextButtons at the moment before reacing the end of the scrolling.
How can I make the scrolling “longer”?

I tried to change the CanvasSize everytime a button was removed and added, but that didn’t help.

I want the ScrollingFrame to fit everything that gets thrown into it, but scripting-wise I’m not too sure as I’ve already tried, they either get big after x amount is added or glitchy with UIAspectRatioConstraint.

3 Likes

Roblox needs to fix ScrollingFrames. They are very broken!

5 Likes

Try to use
together UIListLayout and UI Aspect Ratio Constraint inside buttons

Why inside the buttons?
(30 letters)

Edit
Anyways, UIAspectRatioConstraint does not support scaling which is the worst thing ever.

Set the AutomaticSize property of the ScrollingFrame to Y (if it’s vertical) or X (if it’s horizontal).

1 Like

And? They just get bigger when I add more buttons.

Use offset for the buttons as the scrolling frame should cover this.

I have a resize plugin, not sure what offset would mean in this case.

Edit
Anywas that’s not a good idea, because my GUI is based on scale.

Offset bases it on pixels rather than screen size, usually using offset is bad practice with the exception of Scrolling Frames as it breaks them.

Size

Yeah that won’t work, also read my edit above.
So, I assume there’s no fix for this? I have seen multiple games that has this function though.

It should be fine, here’s an example (from a project I worked on):

PC:

Mobile:

That doesn’t work, it just glitches out when I resize my screen.

Edit:
Since there is no way to fix this, I’ll just limit the history to 20 since it don’t allow more than that.

This serves no use, it just keeps glitching anyways.

CanvasSize is a UDim2 Value

UDim2.new ( number xScale, number xOffset, number yScale, number yOffset )
Set the scale values for x and y to 0 and they will not change when resizing your screen

I already found my own fix, which no one else has come up with which works perfectly.
Thanks anyways.

Mind posting your fix here so that other people who are having this problem can know the solution as well?

The fix is not really explainable, because it has to do with how roblox handles the zero’s (ex. 0.00005) in the X coordinate.
You just gotta mess around with them until they work the way you want them to.

Is this what you were trying to achieve?
Y4BeK7oCTU

That’s what I achieved, and yes.
(Without expanding the ScrollingFrame, I made it so it’s always very wide so I don’t have to mess with it.)