Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onInitialize is not working #19

Open
ajmerainfo opened this issue Nov 4, 2014 · 5 comments
Open

onInitialize is not working #19

ajmerainfo opened this issue Nov 4, 2014 · 5 comments

Comments

@ajmerainfo
Copy link

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

@hotmeteor
Copy link

+1

1 similar comment
@shaunjanssens
Copy link

+1

@The4thLaw
Copy link

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

@jetlej
Copy link

jetlej commented May 10, 2016

+1

@chriscfox
Copy link

chriscfox commented Dec 18, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants