1 Reply Latest reply on Aug 13, 2010 4:28 AM by Aron manager

    No way to get spark:TextArea num text lines.

    Aron manager Level 1



      I have been researching for some hours for this, but I can't get the spark:TextArea num text lines (old textInput.numLines). I found this:


      http://blog.flexexamples.com/2010/01/13/determining-the-number-of-lines-in-a-spark-richedi tabletext-control-in-flex-4/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Fl exExamples+(Flex+Examples). It is done for RichEditText, but I understood by the comments that should work with Textarea. Well it desn't for me.


      But everything I have tried from there lead me to a raised exception. I have tried:

      textArea.mx_internal::textContainerManager.numLines -> exception, textContainerManager property can't be found.
      textArea.textDisplay.textContainerManager.numLines -> textDisplay does not exist

      Don't know what to do next :/, all seems to be leading to a dead end.



      Thanks in advance,