Skip to content

Commit 9a2dafa

Browse files
committed
Core: Avoid layout bug in IE with minHeight support test.
1 parent 8f22b2b commit 9a2dafa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/jquery.ui.core.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ $(function() {
228228
});
229229

230230
$.support.minHeight = body.appendChild( div ).offsetHeight === 100;
231-
body.removeChild( div );
231+
// set display to none to avoid a layout bug in IE
232+
// http://dev.jquery.com/ticket/4014
233+
body.removeChild( div ).style.display = "none";
232234
});
233235

234236

0 commit comments

Comments
 (0)