I have a textarea in my form :
<s:textarea key = "appInfo.collection"
required = "true"
readonly = "true"
cssClass = "form-control"
rows = "8"/>
and few more textarea fields. I want to make these textareas fit their content in readonly mode.
Since I have specified rows=8
it sometimes shows a blank area if content fills only 2 rows, or shows a scrollbar if content is more than 8 rows.
How can I give these textareas the right size based on their content, with no scrollbars ?