UI Padding Not Working With Scrolling Frame

If I utilise the UI Padding feature on elements within a scroll frame, it ends up cutting the bottom of the last element off. This is with automatic scrolling frame size enabled and below is an example of the issue: any advice would be much appreciated!

image

1 Like

Yeah this is a bug… dont know if its known or not but i heard that “there are some fundemental issues with the design of the scrolling frames” so scrolling frames might get revamped sometime,

as for your issue, scrolling frames just dont take the padding into their automatic sizing calculations so the only way i know and use to get arround this is to make my own padding, basicaly, have the padding on the UiListLayout (or other layouts) set to 0, 0 and add a background invisible frame to the ui, example:
image
[the white frame behind the actual ui is normaly transparent, i made it visible just to showcase how im doing it]
and in the explorer it looks like this:
image
[“Notification” is the larger normally invisible frame that provides the padding and then inside it the “Frame” is just 0.8 of the size in scale and the “Frame” actually has the ui elements in it]
Was that understandable at all? im bad at explaining stuff

5 Likes

I did test this out but I wanted to have the frames be able to expand on the Y access to any size possible so as to display more information. However, my issue is a very niche one and so I do believe that if anybody else experiences this issue, this would be the most logical fix.

Sorry for the bump, but I found a solution that seems to work pretty well for me.

If you are trying to use AutomaticCanvasSize on Y, then you can solve the issue by controlling the Frame’s Y Size through a UIAspectRatioConstraint rather than setting their Y size manually or through a UIGridLayout.

For example, if your Size looks like this, then the issue happens.
image


This is because I manually set the Y Scale value.

But if you instead control Y Size through an AspectRatio like this, the issue is fixed.
image
image


3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.