AutomaticSize on scrolling frame with aspect ratio and grid not large enough

Reproduction Steps
See the attached repro file:
AutomaticSize.rbxl (51,1 KB)
You may need to resize the studio window for it to update if it appears differently initially.

It seems likely related to the UIAspectRatioConstraint parented to the UIGridLayout. Removing it seems(?) to solve the issue but completely wrecks the button sizes obviously.

Expected Behavior
The scrolling frame is not resized correctly in this case, it should not cut off the bottom row of buttons.

Actual Behavior
The size calculated is too small and it cuts off the bottom row of buttons in the grid.

Workaround is to add an invisible element to the bottom of the list to make it a bit larger, but this is really yucky and requires guesstimating the size of the inaccuracy.

I’ve been experiencing this for at least 4 months, perhaps longer.

Issue Area: Engine
Issue Type: Other
Impact: Moderate
Frequency: Constantly
Date First Experienced: 2021-12-01 00:12:00 (-06:00)
Date Last Experienced: 2022-03-27 00:03:00 (-05:00)


Thanks for the report! We are looking into this.