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
box-sizing: border-box causes the height to be bigger than what it should #51
Comments
Thanks for the report, but I wasn't able to reproduce this problem. Is your "how it should look" actually how it should look, or is that just how you want it to look (as in maybe it is rendering correctly according to your CSS)? What does it look like if you don't use autosize? If autosize is the problem, post a demo and I'll look into it. |
Without using autosize, the textarea gets its original size (which is about 3 rows, the "how should look" is the |
I didn't try with bootstrap, I just changed the box-sizing. |
And changing the box-sizing did change the total height, but that was independent of using the plugin. |
Sorry, I got out of the wi-fi zone and just updated the comment without refreshing... This is the -moz-box-sizing: border-box;
display: block;
min-height: 30px;
width: 100%; |
Thanks |
Ok, should be fixed now. |
Oh, thanks! You're awesome! |
@gustavohenke @jackmoore |
Hello, it seams that the problem occurs again, but changing
to
does the trick. |
outerHeight is false by default, so your change shouldn't affect anything: |
I know but only with "false" it works... (text area have input-block-level class) |
Do you happen to be using jQuery 1.8.0? http://bugs.jquery.com/ticket/12293 |
Hey,
I'm using your plugin within Twitter Bootstrap, applying it in a
textarea.input-block-level
, which hasbox-sizing: border-box
.This causes the one-line height of the textarea to be bigger than what it should.
I commented the line 70 of the plugin code, than I get the correct initial height of my textarea.
See the image below:
The text was updated successfully, but these errors were encountered: