Resize Text RectTransform Bottom?

Hey!

So basically I am making an text input with a rectangle scroll (Image which holds the rectScroll itself + a child Text Input which is scrollable. However, what I haven’t figured out yet is how you can resize the UITexts Bottom, so if a user types in a very long text - I want him to ble able to scroll it all, instead of having either just lots of blank text to scroll, or not be able to scroll all of his text.

I have tried to use the GetComponent().rectTransform.sizeDelta = new Vector2(x,y); This seems to expand the Text in height both ways. And as you know, I have already set the scroll-content - so what really happens then is that this overlaps other content and makes it look rather weird. I have included to pictures to demonstrate.

This is what I want;

This is what happens;

Go to brackys on youtube and see the ui tutorial, dont know exact name but he does whole process of scrollable text

Yeah, I watched it yesterday hahah. However, he doesn’t tell anything about changing the bottom of a scrollRect…

I didnt watch it yet but i saw him explaining how to set to which point can be seen o.0