autogrow icon indicating copy to clipboard operation
autogrow copied to clipboard

onInitialize is not working

Open ajmerainfo opened this issue 11 years ago • 5 comments

onInitialize is not working on textarea. I have default more than 3 line textarea and it's not working.

ajmerainfo avatar Nov 04 '14 18:11 ajmerainfo

+1

hotmeteor avatar Aug 05 '15 21:08 hotmeteor

+1

shaunjanssens avatar Nov 21 '15 01:11 shaunjanssens

Just a quick idea which worked for me: try setting the parent element to position: relative

The4thLaw avatar Dec 17 '15 11:12 The4thLaw

+1

jetlej avatar May 10 '16 17:05 jetlej

@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...

chriscfox avatar Dec 18 '16 16:12 chriscfox