I'm trying to bring in external text in the form of
paragraphs and titles. I want to create text boxes for the
paragraphs that fit exactly to the number of lines the paragraph
will require. I want to do this so when I place them in a vertical
line I can space them evenly.
If I just create a text box a certain size and the text only
ends up being 1 line and the text box I created allows for 3 lines
then the space between the paragraphs with less than 3 lines is
much greater. Is there a way to create a text box based on your
text and not size?
you can use the autoSize property of textfields. for a
multiline textfield you'll probably want to specify its _width,
assign its text property, enable its autoSize property (true or
"left") and you can then use the _height of the textfield to
position the next textfield below it.