Input field resize

Hi ! I have an input field in my canvas and I would like, when I write in, that the height of the text zone is increased automatically to have a “paragraph”. I tried to select the “multi new line” line type and I added a Content Size fitter component to my Text object but still no success… Can you help me?

Put the ContentSizeFitter on the parent, and also add a Vertical or Horizontal LayoutGroup to the parent, even if it’s the only element so that the parent will get the “preferred size” of the children. That’s what works for me.

Thank you !