Automatically sizing a frame with UIGridLayout while it is inside a UIListLayout Frame

I have a Gui which I’m allowing Users to change the size horizontally, while the vertical axis is considered infinite. Inside this Gui I want to set up Categories(Frame) that are listed one above the other using UIListLayout.

Inside these Categories I have a UIGridLayout as I want select Box’s to fill the Categories across the horizontal before moving onto the next line.

With the Gui being any size on the horizontal the total rows in the Categories will change as the Gui is resized so to remove wasted space I want to know if there is anyway to automatically update the categories height. I could easily script this but I’d rather go for the UILayout approach first.

What I want to happen.


What currently happens.