I have a textarea like this:
<Form.TextArea fluid label='ADI' value = {cmsObj.ADI} rows={rows} cols="10" />
It is calculating size with my function:
calculateRows(text){
if(!text)
return 1;
return Math.ceil(text.length/10);
}
This function creates enough space, but unfortunately it allocates too much space. There is a lot of white space after the text ends. Any idea what the function should be to just create enough space to get all of the object's text (but no white space at the end) ?