autogrow
autogrow copied to clipboard
onInitialize is not working
onInitialize is not working on textarea. I have default more than 3 line textarea and it's not working.
+1
+1
Just a quick idea which worked for me: try setting the parent element to position: relative
+1
@The4thLaw that solved it for me in some instances. No idea why, but thanks!
In other instances, it only worked when I wrapped the initializer in a 0 millisecond delay:
setTimeout(function () { $('textarea').autogrow({ onInitialize: true, fixMinHeight: true }); }, 0);
Again, no idea why...