UIGridLayout scale inconsistency with ScrollingFrames

Ever since a recent update (I only noticed it happening today), it appears that the Scale properties of CellPadding and CellSize in UIGridLayouts are behaving inconsistently when put in ScrollingFrames.

CellPadding will scale based off of the CanvasSize.
Repro:
UIGridLayoutRepro.rbxl (13.5 KB)
How it looks now:


How it should look (and how it looked before this update):

Notice that the ScrollingFrame’s dimensions are 400X400 pixels; this means that the CellSize (being UDim2.new(0.2, 0, 0.2, 0)) should be exactly 80X80 pixels. This works just as it should.

However, the CellPadding (being UDim2.new(0.1, 0, 0.1, 0)), if it also consistently followed this pattern, should have been equivalent to 40X40 pixels. Instead, it is equal to 40X80 pixels, because the CanvasSize of the scrolling frame is 400X800 pixels.

This inconsistency should be changed.

5 Likes

I noticed this yesterday and it got really annoying.

This sounds like expected behavior to me. CellPadding and CellSize should be based off of CanvasSize. Just like if I put a frame inside and set it’s size to 0.5, 0, 0.5, 0 I would expect it to fill a quarter of the CanvasSize and not the parent size.

I’m with you on using CanvasSize instead of AbsoluteSize, but I think the problem is that CellSize uses AbsoluteSize and CellPadding uses CanvasSize.

2 Likes

We have a ticket tracking this issue, will update when we have a fix