I have a TextField with multiline and word wrap enabled, and a fixed width. I want to calculate the total height of the text inside it.
I tried using TextField.textHeight
, but that gives me the height of one line. Because of the wrapping, I can't easily calculate the number of lines to multiply it with the line height. TextField.height
just gives me the fixed, default height of the field, 100 pixels.
So how to do it?