I am adding the content to a textarea programmatically as shown below (where @muse.text is the content I want to display in the textarea)
$(@el).find('.context textarea').text @muse.text
$(@el).find('.context textarea').elastic()
However when I check the textarea, not the entire content is seen

Actual content I want to display

How can I programmatically set the textarea to the height of the content?
I have wriiten some code in Fiddle. This will help you in simple way
HTML
CSS
jQuery