Padding on UIListLayout paired with ScrollingFrame changes as the device gets smaller?

So I have a ScrollingFrame with loads of buttons inside. In order to make it look neat, I added a UIListLayout to add some padding.

I have a problem though.

The smaller the device, the smaller the amount of padding is added.

In the following image, the padding is correct.

In this image, where I shrunk my view tab down, the padding goes completely bonkers.


In the last image, the buttons were nearly overlapping each over.

This is what I have in my UIListLayout:

image

This is what I have in my ScrollingFrame:

I tried looking for fixes but no posts talked about what I was facing. Does someone know how to fix this?

By the way I did use scale for the padding, so I am confused why it is not working.

1 Like

if u havent use this then i recommend doing so

Change the padding from 0.03, 0 to something like 0, 5

The first value is relative to the whole screen size (1 being the full screen), and the second value is in screen pixels

2 Likes

didnt need to remove it :smiley:

agreed with that too!! :smiley:

It made it worse.

Increase it from 5 to 15. Play around with it

Here is how you manually scale it: Keeping the Aspect Ratio of your GUIs

Yeah but since it is in offset mobile devices will experience higher rates of padding.

I don’t see how that’s an issue. Can you show what it looks like?

If it doesn’t look right then maybe you should use offset for the Y size of the TextButtons

As well as lots of padding, the top and bottom buttons are cut off.

have you tried the plugin??? i mean this

I know about the plugin, but I don’t like using plugins in terms of UI work.

hmm interesting, but i dont know any fix to it exept for that

i reccomend watching this video!!

Use scale for the Y size of Frame2? So it scales with the device screen Y size

If you want the buttons to always fit then you should write some kind of code for rounding the size of the frame so they always fit perfectly

hmm, yeah i kinda agree indeed

I already know about scale and offset.

I don’t think you understand my point.

yeah yeah, but can u show me whats ur current offset? im not into ui design much but im trying my best to help!!

image

yeah yeah, but can u show me whats ur current offset? im not into ui design much but im trying my best to help!!

I agree. I am bad at UI design too.