Core: Access offsetHeight on div for support tests to avoid a layout bug in IE 9. Fixes #8026 - minHeight support test affects page layout in IE 9.

(cherry picked from commit 956c2cd2a5)
This commit is contained in:
Scott González 2012-01-19 21:37:21 -05:00
parent e2a21129cb
commit 9e4455f52d

View File

@ -225,6 +225,11 @@ $(function() {
var body = document.body,
div = body.appendChild( div = document.createElement( "div" ) );
// access offsetHeight before setting the style to prevent a layout bug
// in IE 9 which causes the elemnt to continue to take up space even
// after it is removed from the DOM (#8026)
div.offsetHeight;
$.extend( div.style, {
minHeight: "100px",
height: "auto",