Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
outerHeight() differs between chrome and IE11 #3698
Comments
timmywil
added
Needs review
and removed
Needs review
labels
Jun 19, 2017
|
Thanks for opening an issue. But, the result is correct because you have a border on both the outer div and inner div, so it's really 10 + 2 + 2 = 14. |
timmywil
closed this
Jun 19, 2017
nick1377
changed the title from
outerHeight() returns wrong result when height is "auto" and has a border
to
outerHeight() counts borders twice in IE11 when height is "auto"
Jun 19, 2017
nick1377
commented
Jun 19, 2017
•
|
Can you reopen this issue? The test case was bad and I had the issue slightly wrong but it is a bug. I provided a better test case and fixed the title and description a bit. |
|
Please work the test case down to a minimum, removing css and HTML elements/attributes that don't affect the result. |
nick1377
commented
Jun 19, 2017
|
Done. The new test case is now only what is needed to reproduce the issue. |
nick1377
changed the title from
outerHeight() counts borders twice in IE11 when height is "auto"
to
outerHeight() differs between chrome and IE11
Jun 19, 2017
|
Thanks for the updated test case. I confirm the behavior in IE changed in jQuery 3.2.0. |
mgol
reopened this
Jun 19, 2017
mgol
added
Bug
Dimensions
labels
Jun 19, 2017
|
@dmethvin The biggest issue is that behavior in IE changed in jQuery 3.2.0 so it looks like an unintended breaking change. |
mgol
added
the
Needs review
label
Jul 23, 2017
|
The problem seems to hinge on phantom <tr> borders in IE: https://jsfiddle.net/179d0uek/15/ . Now to investigate the reason... |

nick1377 commentedJun 16, 2017
•
Edited 1 time
-
nick1377
Jun 16, 2017
Description
The outerHeight() differs between Chrome and IE11.
In the test case below the height shows as 23 in chrome but 25 in IE11.
Link to test case
https://jsfiddle.net/179d0uek/12/