move maxHeight/Rows logic in separate function; fix bugs;
move maxHeight/Rows logic in separate function; fix bugs;

buildo/react-autosize-textarea,buildo/react-autosize-textarea,buildo/react-autosize-textarea,buildo/react-autosize-textarea