Flex TextArea html text wrong line number and dimensions
===

I'm following this tutorial http://dmallonee.com/flex/tag/emoticons/ to insert emoticons on my chat application. However, I have a problem when inserting text and emoticons on the first line.

When I set textarea htmlText property, I get a lot of extraspace which then will break my calculations. If I inserted 1 line of text/smiles, I'll get something like numlines = 5.

What can cause this behavior?