I’m using a UIListLayout to format inventory cells, but depending on the screen width, the cells are rendered past the boundaries of their parent frame. The cells scale properly with changing screen heights.
This is the intended look:

This is what happens when the screen width is shrunk:

The inventory cells are generated via a script; they are derived from a template with a UIAspectRatioConstraint with the following properties:

The cells’ parent frame have a UIListLayout with the following properties (I’ve tried adding a UIPadding, but the cells just bypass it):

How do I get the cells to scale properly (i.e. stay inside the boundaries) if the width of the parent frame changes? If you need me to provide more information, please ask and I will try to reply as soon as possible.