How to make a Frame auto resize so it can fit all children

I want to make a Frame.
In that frame there is a UI List.
If I fill the frame with, for example, some buttons, i want the frame to change its size so it shows all the buttons.

I’m not sure what you mean by a frame. You need to be more specific as you cannot make scrolling UI in a frame, you would have to use the Scrolling Frame. What you want to do is change the CanvasSize scale in the Scrolling Frame.
Snímek obrazovky 2023-10-12 204356

ScrollingFrames actually have an auto canvas size feature, but it is disabled by default.

ill try and ill reply later if it works.
and ty.

while trying your solution i noticed AutomaticSize and that did the trick. it also works on frames

1 Like

like a frame and in that frame there is a UI list. i want the Frame to behave like clip descendants but instead of clipping them it resizes the frame to the point where all fits in the frame.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.