I am using LWUIT for the Series 40 below.

http://projects.developer.nokia.com/LWUIT_for_Series_40

Below is my code for using the LWUIT textarea.

//Set textarea row to 1, and column to 10
title = new TextArea("The quick brown fox jumps over the lazy dog",1,10);
title.setSingleLineTextArea(false);
title.setGrowByContent(true);
title.setEditable(false);

The textarea does not grow, even though my string requires more than 1 line to be displayed completely.

However, if I pass 2(for row argument) into the textarea constructor, the textarea will grow to show the string completely.
My problem with setting row to 2 is if the string is only 1 line, the textarea will still display an additional empty line, which I want to avoid.

May I know, how I can solve this issue? Thanks in advance.