UIgrid/UIList wrap with automaticsize bugs and UIPadding

What happens mainly is that for UIGrids in a frame that has automaticsize will just break the spacing padding fully when scaled;

same for the UIList wrap, which you cant even change the Y property aswell;

this is also another issue with UIPadding when using automaticsize

another issue with uipadding with scrollingframes

these has been a ongoing issue honestly, and it always been a roadblock when i had to use UIpadding or the automaticsize property the most; and i am not the only one who has these issues aswell
please consider fixing the scaling issues since it been way too long and we need literal bypasses and methods to make these work properly and theres people who gatekeep the methods/bypasses aswell which i absolutely despise.

and scaling automaticsizexy is basically impossible [correct me if im wrong because i lit tried everything to make it work]

1 Like

Because you’re using Scale with automatic size. The bigger the contents, the more padding there is. That’s why the distances keep changing.

You also never showed the properties of the UIPadding in the video (just skipped over it). I’m assuming that padding uses scale as well. If that’s the case, then this behavior is expected.

As you can see, if the container changes size, then so does the padding.

Use offset on automatically scaled axis. Contrary to popular belief, using scale on everything doesn’t actually make scalable UI. This is true both in and out of Roblox (look at how different websites are made, they use offset, not scale).

ye but see how the bottom padding is messed up even with them being offsetted?

1 Like

Because your frames are still using scale.

Everything on that axis that affects the automatic size should be using offset.

the children frames or the frame that has automaticsize

The parent doesn’t affect its own automatic sizing, so it’s just the children.

ok i think that works, but i have to test it more just to mak e sure

now how about scrollingframes with automaticcanvassize with uipadding because that also hasissues, is it just the same thing or what [yes i tried it]

It shouldn’t have issues if you don’t use scale. I use it with offset all the time.

do u only use scale for the children IN the scrollingframe

think I found the solution. If you’re using AutomaticSize or AutomaticCanvasSize, keep everything that affects that axis in Offset. For example, if you’re using AutomaticCanvasSize = Y, make the item heights, UIPadding, and UIListLayout.Padding use Offset on the Y axis. You can still use Scale on the X axis for responsiveness. I’ve been testing it and it seems to fix most of the spacing issues. It still needs more testing, but it’s looking promising.

1 Like