While searching for creating a multiline textfield I ended up with TextWrap and Display.
TextWrap seems to be the thing I am looking for. Is there a possibility to get the height of the multiline text?
Display sounds cool too - the feature list is nice. But it seems to be offline. Every link on the page leads to a dead end. Is this still online somewhere else?
Comments
If you know the height of one line of text then you can get the textFields number of children (getNumChildren()) and multiply that by the lineHeight.
Likes: rolfpancake
TextWrap does not work with setScale (no line break when text overflows and the actual width is not returned by getWidth so there is no way to check this) - but I think I can circumvent this by calculating some proper scaling factor based on the width of a hidden TextField.
I am still interested in the Display thing...