ro31337 / jquery.ns-autogrow

Automatically adjust textarea width/height based on user input. Non-sucking version.
http://bit.ly/1NeshO8
166 stars 49 forks source link

initiate autogrow when element has display:none #16

Open clarkk opened 7 years ago

clarkk commented 7 years ago

If a textarea is initiated with autogrow when it is hidden with display:none it doesn't work.. The padding in the bottom is too high (is more than one line/row)

https://jsfiddle.net/sLkg3nx5/2/

How to remove autogrow from the element and then set it again later when it is visible?