UIGridLayout leaves massive gaps when on different sized screens

Hey there everyone,

I currently have this UIGridLayout with frames inside which all have UIAspectConstraints
When resizing screens to e.g. phone size, there tends to be really big gaps and it looks really ugly

normal size:

On phone:

Even adding a uiaspectconstraint does not help, the sides stick out and even when i mess with the max direction fill cells it doesnt do anything:

Here is the layout and hopefully it can help:

Help would be great appreciated!

You really only need a UIAspectRatio on the container frame and not the children itself. Try removing the constraint on the children and tell me if it works

Place the aspect ratio under the UIGridLayout, and delete the ones you currently have under each “Slot”.

1 Like

:skull: You can’t just put the aspect ratio constraint as a child of a UIGridLayout

1 Like

Tell me what I’m doing wrong it doesn’t work for me:

EDIT: Okay nevermind it seems like I just had to interact with the gui in order for it to work
Learn something new every day (and feel stupider everyday lol)

1 Like