Resize a panel in the editor without all its children being stretched?

I’m trying to build a prefabbed UI in the editor and it’s pretty painful since every time I want to resize a panel, all its children get stretched out as the panel is resized. Is there some way to resize a panel while having all its children stay fixed without dragging all the children out of the panel, resizing it, then dragging them all back in?

Select your panel press “T” on the keyboard then drag the size to what you want.

Or in the inspector, change the values for “Top” “Bottom” “Left” “Right”

Unity Doc: RectTransform