TextArea resizes to one row.
I was waiting for today's release because I had heard it would fix some issues related to the TextArea - well, it seems my problem was unrelated and it therefore is still there..(BTW, today's release fixes a couple of other issues, good job!)..
I have a TextArea which basically represents a news ticker and therefore gets updated quite often (every 5-6 seconds) by another thread. It works fine, no problem here
Th problem is tho.. my screen has several Commands, and when I click the Commands menu the popup appears in the foreground (as expected), but also suddenly the size of the TextArea gets reduced to a single line! (it kinda looks like a TextField)..
Once that happens the incoming news text doesn't fit in the TextArea and a scrollbar appears!
The strange thing is that when I click the Commands menu again, the TextArea resizes to it's original size.
This leads me to believe that there is some kind of painting/repaint problem here.. oh, and the problem is reproduced on multiple emulators and also devices. BTW, I've tried hacks like setting the rows, size, etc. doesnt work..
And here's the code I use to initialize the TextArea:
newsDisplay = new TextArea( 5, 100, TextArea.ANY | TextArea.UNEDITABLE );
newsDisplay.setPreferredSize( new Dimension( getWidth() - 10, 100 ) );
Message was edited by: nafs