]> source.dussan.org Git - jquery-ui.git/commitdiff
Core: Avoid layout bug in IE with minHeight support test.
authorScott González <scott.gonzalez@gmail.com>
Tue, 7 Sep 2010 18:06:07 +0000 (14:06 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 7 Sep 2010 18:06:07 +0000 (14:06 -0400)
ui/jquery.ui.core.js

index ff7815c75dac8bae7278fe36dc3705642f77535e..b52ff9171cdb3b947859d38df27236d92366bf49 100644 (file)
@@ -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";
 });