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

IE8 line-height issues #7

Open
aaronmuir opened this issue Aug 30, 2012 · 2 comments
Open

IE8 line-height issues #7

aaronmuir opened this issue Aug 30, 2012 · 2 comments

Comments

@aaronmuir
Copy link

For me line-height wasn't being calculated properly in IE when I didn't specify css line-height for a textarea, so I put the following in to work around it in the future. Also, I switched to "isNaN()" rather than "==NaN"

    if (jQuery.browser.msie && (isNaN(this.line_height))) {
        jQuery(e).css('line-height','100%');
        this.line_height=parseInt(jQuery(e).css('line-height'));
    }
    this.line_height = isNaN(this.line_height)? 0 : this.line_height;
@akaihola
Copy link
Owner

@aaronmuir That's a great catch. Would you care to create a pull request for this change?

@aaronmuir
Copy link
Author

Sure!

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

2 participants