Ticket #9484 (closed bug: duplicate)
height() returns incorrect value in IE7 for div without top border
|Reported by:||dwilks||Owned by:|
height() on outer div is incorrectly returning 49 in IE7. .css('height') and innerHeight are also incorrect. outerHeight is correct. DOM's clientHeight is correct.
Correctly returns 50 in IE8, Firefox 3.6, Chrome 11.
The key is that the div has a 1px border but border-top is set to 'none.' JQuery returns correct values if border-top is also set to 0px.
Tested against 1.6 and edge in jsfiddle. Against 1.6.1 in my own project.
- Status changed from new to closed
- Resolution set to duplicate