]> source.dussan.org Git - jquery-ui.git/commitdiff
Core: Removed $.support.minHeight.
authorScott González <scott.gonzalez@gmail.com>
Fri, 26 Oct 2012 19:45:34 +0000 (15:45 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 26 Oct 2012 19:45:34 +0000 (15:45 -0400)
ui/jquery.ui.core.js

index 2e9d53ae3499d5ef7cc746caa783b7ce20e63c13..7b5590fc10525f7fdcca97e19bfb0043b760dfa5 100644 (file)
@@ -228,29 +228,7 @@ $.extend( $.expr[ ":" ], {
 });
 
 // support
-$(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 element to continue to take up space even
-       // after it is removed from the DOM (#8026)
-       div.offsetHeight;
-
-       $.extend( div.style, {
-               minHeight: "100px",
-               height: "auto",
-               padding: 0,
-               borderWidth: 0
-       });
-
-       $.support.minHeight = div.offsetHeight === 100;
-       $.support.selectstart = "onselectstart" in div;
-
-       // set display to none to avoid a layout bug in IE
-       // http://dev.jquery.com/ticket/4014
-       body.removeChild( div ).style.display = "none";
-});
+$.support.selectstart = "onselectstart" in document.createElement( "div" );