From 9a2dafa94828fc43537c6fbfd133be84ca55d04b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 7 Sep 2010 14:06:07 -0400 Subject: [PATCH] Core: Avoid layout bug in IE with minHeight support test. --- ui/jquery.ui.core.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js index ff7815c75..b52ff9171 100644 --- a/ui/jquery.ui.core.js +++ b/ui/jquery.ui.core.js @@ -228,7 +228,9 @@ $(function() { }); $.support.minHeight = body.appendChild( div ).offsetHeight === 100; - body.removeChild( div ); + // set display to none to avoid a layout bug in IE + // http://dev.jquery.com/ticket/4014 + body.removeChild( div ).style.display = "none"; }); -- 2.39.5