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

Doesn't work properly in Google Chrome #3

Open
ari opened this issue Nov 11, 2010 · 8 comments
Open

Doesn't work properly in Google Chrome #3

ari opened this issue Nov 11, 2010 · 8 comments

Comments

@ari
Copy link

ari commented Nov 11, 2010

We find that the initial size of the text area is completely collapsed to a small value in Google Chrome.

@jinsonxu
Copy link

jinsonxu commented Sep 7, 2011

As a workaround, try setting the CSS min and max-height for your textarea elements?

@igutsaliuk
Copy link

didn't worked for me

@ari
Copy link
Author

ari commented Dec 14, 2011

Could you please explain. Which field? Which version of Chrome? Which OS?

@brinley
Copy link

brinley commented Aug 6, 2012

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.

@bgoldowsky
Copy link

Also fails for me - Google Chrome 21.0.1180.75 (latest) on Mac OS X.

@brinley, were you able to find a fix?

@brinley
Copy link

brinley commented Aug 14, 2012

@bgoldowsky I made a fair bit of changes custom to my app but I've manually pushed my changes to
https://github.com/brinley/jquery-autogrow/pull/new/patch-1

Would you like to give it a whirl and see if it fixes your problem before I submit a merge request?

@bgoldowsky
Copy link

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

@brinley
Copy link

brinley commented Aug 16, 2012

@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

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

5 participants