UIPadding parented to scrolling frame not allowing full content to show when automatic resizing on

So I have a uipadding parented to my scrolling frame and when automatic resizing is on it won’t articulate the fact that there is a ui padding, which causes this to happen

As you see im scrolled all the way down and some part of the ui will not show. also the more rows there are the clipping gets incrementally worse.
How do I fix this with a script without causing a infinite execution loop by connecting a when canvas size changes event and then changing the size of the canvas so the whole content fits. Also please do not ignore my question and tell me to “just delete the ui padding lol”, bruh, its there so that the ui stroke won’t be clipped. Your help is very much appreciated.

3 Likes

Did you eventually end up finding a fix for this?

1 Like

I remember I took a walk that night and realized I can use the exact same scale value for the X? I think? and use it for the Y, and then the padding is perfect

2 Likes

Hello, I’m really sorry for bumping.
I dont understand how you fixed this. Could you explain a bit more?

Hey! No worries, sorry for the late response lol. The exact same offset/pixel Y size can be applied to the X, so I had to only run a calculation for the Y padding offset once based off of screen size.

So if you’re gonna calculate the Y axis padding offset, you can just use it for the x axis. that will solve the problem!