How do i fix UIListLayout

Sorry for putting this as scripting support but im not sure what category to put this in.
But im having problems with uilistlayout, heres the problem

1 Like

What’s the problem I can’t really tell

the first gui is sticking up to high

Is that the highest you can scroll?

yes

Check if setting the ScrollingFrame’s ScrollingDirection to Y fixes the problem.

nope that does nothing either

Hm. Could you upload the place so I can take a look?

scrolling.rbxl (31.6 KB)

The reason it’s appearing off the ScrollingFrame is that you’re expecting it to consider the descendants, whereas a UIListLayout will only adjust according to the immediate children. To resolve this, you should create a Frame that acts as a container of the TextLabels and TextButton, but make sure when you do this you’re using Scale rather than Offset to size them.

(I had this reply written out but forgot to post it)

1 Like

im not really sure what you mean, can you show me please?

Quick edit: I wasn’t reading replies but this is exactly what @Proxus was saying to do above.

ScrollingFrames do not account for UI elements inside of a UI object being positioned outside of the bounding box it has. For example, in your name labels, you have “Plr Level” and “Plr Name” positioned at -0.35 which is outside of the bounding box of the Name label.


Here is your UI which is how you shouldn’t do it.
As you can see the circled portion is outside of the blue highlighted bounding box of the Name label.
Capture2



Here is mine, where I recreated this and put it all inside of a frame so nothing is outside of the area to be cut off.



Ok, so as you can see that fits perfectly. Here is a place file that contains this fix.
scrolling.rbxl (34.0 KB)

If this helps please mark this as the solution.

Also another thing I noticed is you were creating this UI using Offset and not Scale. I wouldn’t use Offset unless you are dynamically changing the UI size based on the Viewport Size. Instead I would use Scale, which is what I did when resizing your UI.

Thanks so much!

1 Like