Setting AutomaticSize to "None" via script sets the frame's size to {0,0}, {0,0} instead of maintaining its size

I have no idea if this is a bug or if I’m doing something wrong
I have a uilistlayout of frames, and inside each frame a textlabel (important note: both the frames and the textlabels have automaticsize enabled)


Meant to look like this:
image
Now, I want some of the frames to have their automaticsize disabled, so that i can change the text’s size freely without everything else moving too because of uilist

If i go ahead and set the frame’s automaticsize to None via studio, it works perfectly fine and you can see in the right corner that the text still looks completely normal and unchanged:

But the moment i try to do it with a script:
image
image
The frame’s size gets set to 0,0,0,0 instead of maintaining its size like in the previous picture which causes the text to bug out

Is this a bug? Is this intended? Am I doing something wrong? I genuinely cannot tell

1 Like

I don’t know why that would happen either. For now, just patch it with a temporary fix; specifically saving the Frame’s prior UDim2 size values before setting the AutomaticSize property, then after that, set the Frame’s size back

2 Likes

This is the first thing i thought of too, ill probably mark this as a solution if there isnt any other response in the next 2-3 days but thanks for your help anyways

1 Like