mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Core: Improvements to minHeight support test. Thanks jdalton.
This commit is contained in:
parent
0050f234a8
commit
409f5d1ba0
16
ui/jquery.ui.core.js
vendored
16
ui/jquery.ui.core.js
vendored
@ -217,14 +217,18 @@ $.extend( $.expr[ ":" ], {
|
||||
|
||||
// support
|
||||
$(function() {
|
||||
var div = document.createElement( "div" );
|
||||
div.style.minHeight = "100px";
|
||||
var div = document.createElement( "div" ),
|
||||
body = document.body;
|
||||
|
||||
document.body.appendChild( div );
|
||||
$.support.minHeight = div.offsetHeight === 100;
|
||||
document.body.removeChild( div ).style.display = "none";
|
||||
$.extend( div.style, {
|
||||
minHeight: "100px",
|
||||
height: "auto",
|
||||
padding: 0,
|
||||
borderWidth: 0
|
||||
});
|
||||
|
||||
div = null;
|
||||
$.support.minHeight = body.appendChild( div ).offsetHeight === 100;
|
||||
body.removeChild( div );
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user