We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0050f23 commit 409f5d1Copy full SHA for 409f5d1
ui/jquery.ui.core.js
@@ -217,14 +217,18 @@ $.extend( $.expr[ ":" ], {
217
218
// support
219
$(function() {
220
- var div = document.createElement( "div" );
221
- div.style.minHeight = "100px";
+ var div = document.createElement( "div" ),
+ body = document.body;
222
223
- document.body.appendChild( div );
224
- $.support.minHeight = div.offsetHeight === 100;
225
- document.body.removeChild( div ).style.display = "none";
+ $.extend( div.style, {
+ minHeight: "100px",
+ height: "auto",
226
+ padding: 0,
227
+ borderWidth: 0
228
+ });
229
- div = null;
230
+ $.support.minHeight = body.appendChild( div ).offsetHeight === 100;
231
+ body.removeChild( div );
232
});
233
234
0 commit comments