How to stop UILIstLayout list elements from moving outside the parent

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:
image
This is what happens when the screen width is shrunk:
image

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

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

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.

Activate ClipsDescendants in the parent of the frames.

That fixes the problem of the cells going outside the parent frame, but the clipped cells become hidden and inaccessible to the user. I’m looking for something that can resize the cells instead.

bump (looking for a solution to this problem also)

1 Like