-
Notifications
You must be signed in to change notification settings - Fork 36
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
Doesn't work properly in Google Chrome #3
Comments
As a workaround, try setting the CSS min and max-height for your textarea elements? |
didn't worked for me |
Could you please explain. Which field? Which version of Chrome? Which OS? |
I've just encountered this issue and found that it was caused by Chome not picking up the line-height correctly during the initialisation. The parseInt also throws additional spanners into the calculation as under some situations, line-height that is calculated by jQuery if it is not manually defined in the CSS will be a decimal point and it stuffs up the actual calculation. |
Also fails for me - Google Chrome 21.0.1180.75 (latest) on Mac OS X. @brinley, were you able to find a fix? |
@bgoldowsky I made a fair bit of changes custom to my app but I've manually pushed my changes to Would you like to give it a whirl and see if it fixes your problem before I submit a merge request? |
@brinley , the Chrome behavior is better with your patch, but in my application I still do not get consistently correct heights set. I have tested by putting in content with various combinations of short lines, blank lines, lines that have many words and wrap over several lines, and lines with one long "word" that wraps. Eventually the height calculation gets wrong and content is hidden. |
@bgoldowsky I suspect it maybe inheriting padding affecting the calculations, try this updated code at https://github.com/brinley/jquery-autogrow/blob/master/jquery.autogrow.js |
We find that the initial size of the text area is completely collapsed to a small value in Google Chrome.
The text was updated successfully, but these errors were encountered: