Problem with UIGridLayout inside of a UIListLayout

I am trying to make this inventory UI which is a scrolling frame and inside the scrolling frame is a UI list layout with 4 frames and two of these a frames are UI grid layouts with swords frames inside of them. Here’s a picture of what it looks like currently in-game and in the explorer

image_2024-12-27_194343981

image_2024-12-27_194413412

I can’t seem to figure out how to autoscale the “l2_owned” frame, it leaves a huge gap altough there is only 8 swords in the frame

I searched for solutions on the creator hub about Ui list layout and Ui grid layour issues but did not find anything that could help me specificaly for this. I even tried checking pets go inventory Ui which use the same logic of Scrollingframe - UIlistlayout - UIgridlayout. Here are some pictures where you can see that the frame of the UIGridLayout is autoscalling depending on the amount of frames inside of it

Also I tried Automatic Size on XY but it did not change anything, any possible way to fix this? am I doing anything wrong here?

1 Like