Auto adjust scroll height?

I am working on a project that may be similar to a guide

The text inside of it is all imported from .txt files into a scrollView

There are about 1200-1500 files,

so adjusting the scroll height of the scrollView for each text file is impossible and may take ages to finish…

Is there a way to adjust the scroll height depending on the text inserted in the scrollView ?

nvm got my answer

Set height to 0 and the text box height will adjust to the amount of text

Hi @andrew_wahid,

I just want to caution you on texture size limitations when working with large blocks of text, so if you encounter the issue, you can work around it. This tutorial describes it in detail:

https://coronalabs.com/blog/2014/06/17/tutorial-working-with-large-blocks-of-text/

Brent

nvm got my answer

Set height to 0 and the text box height will adjust to the amount of text

Hi @andrew_wahid,

I just want to caution you on texture size limitations when working with large blocks of text, so if you encounter the issue, you can work around it. This tutorial describes it in detail:

https://coronalabs.com/blog/2014/06/17/tutorial-working-with-large-blocks-of-text/

Brent