aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.core.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-09-07 12:15:34 -0400
committerScott González <scott.gonzalez@gmail.com>2010-09-07 12:15:34 -0400
commit409f5d1ba0fe572e8a208a550c42aed516fc4fe3 (patch)
tree7f48e1100b1d734e5db5deae88a986d781b304d6 /ui/jquery.ui.core.js
parent0050f234a88e2dfa99aeab4ff26d233715a697e9 (diff)
downloadjquery-ui-409f5d1ba0fe572e8a208a550c42aed516fc4fe3.tar.gz
jquery-ui-409f5d1ba0fe572e8a208a550c42aed516fc4fe3.zip
Core: Improvements to minHeight support test. Thanks jdalton.
Diffstat (limited to 'ui/jquery.ui.core.js')
-rw-r--r--ui/jquery.ui.core.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js
index 37a9892e3..ff7815c75 100644
--- a/ui/jquery.ui.core.js
+++ b/ui/jquery.ui.core.js
@@ -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 );
});