UIGridLayout with Scale

I’m using a UIGridLayout in a ScrollingFrame and my CellSize and CellPadding are using scale, not offset. This is intentional, however my players sometimes run into issues with AutomaticCanvasSize where it cuts off the bottom of the frame.

I’ve tried a bunch of wacky solutions on the DevForum for fixing this issue but none of them have seemed to work for me flawlessly. The closest I got was using this LayoutUtil module, though the Y axis padding was still messed up when using this. I want to replicate AutomaticCanvasSize’s behavior manually to avoid the weird cutting off.

Here are some images of my setup:

Wondering if anyone has ran into similar issues with AutomaticCanvasSize not working well with UIGridLayouts that use Scale and whether there is a code solution to fixing this. Perhaps manually calculating the Y size of the ScrollingFrame canvas? Any help is appreciated.

This is because you’re using automatic size with scale on the same axis. This should never happen because you run into undefined behavior.

Think about it. If you have two items with a scale of 1, wouldn’t that take up 200% of the container they’re in? However, then the container would have to resize to fit them both. But that’s impossible, because you can’t have two things taking up 100% of the space. One of them has to be out of frame.