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

Chrome returns normal in css lineHeight query #12

Open
josepsanzcamp opened this issue Jun 1, 2012 · 0 comments
Open

Chrome returns normal in css lineHeight query #12

josepsanzcamp opened this issue Jun 1, 2012 · 0 comments

Comments

@josepsanzcamp
Copy link

Some users report me that the autogrow-textarea plugin don't runs in google chrome. I debug the possible problem and I detected that when defines the noFlickerPad variable, the parseInt($self.css('lineHeight')) returns NaN (because lineHeight has the string "normal" as value).

I fixed the problem adding this line:

  • if (isNaN(noFlickerPad)) noFlickerPad = parseInt($self.css('font-size'));

Josep.

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

1 participant