Skip to content

Commit 0c67254

Browse files
committed
Core: Removed $.support.minHeight.
1 parent 30556ce commit 0c67254

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

ui/jquery.ui.core.js

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -228,29 +228,7 @@ $.extend( $.expr[ ":" ], {
228228
});
229229

230230
// support
231-
$(function() {
232-
var body = document.body,
233-
div = body.appendChild( div = document.createElement( "div" ) );
234-
235-
// access offsetHeight before setting the style to prevent a layout bug
236-
// in IE 9 which causes the element to continue to take up space even
237-
// after it is removed from the DOM (#8026)
238-
div.offsetHeight;
239-
240-
$.extend( div.style, {
241-
minHeight: "100px",
242-
height: "auto",
243-
padding: 0,
244-
borderWidth: 0
245-
});
246-
247-
$.support.minHeight = div.offsetHeight === 100;
248-
$.support.selectstart = "onselectstart" in div;
249-
250-
// set display to none to avoid a layout bug in IE
251-
// http://dev.jquery.com/ticket/4014
252-
body.removeChild( div ).style.display = "none";
253-
});
231+
$.support.selectstart = "onselectstart" in document.createElement( "div" );
254232

255233

256234

0 commit comments

Comments
 (0)