Adjusting dynamic txtbox with claudio's scrollbar

Hello,
I’ve read some thread with the same question it seems, but i can’t work it out. I’m using claudio’s scrollbar, and i’m loading dynamic text in it, until here no problem.

What i’d like to know is how can i adjust (by as) the size of the text box depending to the number of line of the text. Because if i have only two lines of text, i have a huge blank space under.
Thanks :slight_smile:
Ubik