diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-09-07 09:28:22 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-09-07 09:28:22 -0400 |
commit | 99694e6fec88c0fbb10144f856073f01cd44091f (patch) | |
tree | f5fbdebfa41502a441ed331faa8f052ef2f2ec4b | |
parent | d80e2236f6ac48a0ced9a566bcb693471a82f60a (diff) | |
download | jquery-ui-99694e6fec88c0fbb10144f856073f01cd44091f.tar.gz jquery-ui-99694e6fec88c0fbb10144f856073f01cd44091f.zip |
Core: Added $.support.minHeight. Fixes #6026 - Core: Add jQuery.support.minHeight.
-rw-r--r-- | ui/jquery.ui.core.js | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js index f040ef5e1..37a9892e3 100644 --- a/ui/jquery.ui.core.js +++ b/ui/jquery.ui.core.js @@ -56,7 +56,7 @@ $.extend( $.ui, { } }); -//jQuery plugins +// plugins $.fn.extend({ _focus: $.fn.focus, focus: function( delay, fn ) { @@ -174,7 +174,7 @@ $.each( [ "Width", "Height" ], function( i, name ) { }; }); -//Additional selectors +// selectors function visible( element ) { return !$( element ).parents().andSelf().filter(function() { return $.curCSS( this, "visibility" ) === "hidden" || @@ -215,10 +215,23 @@ $.extend( $.expr[ ":" ], { } }); +// support +$(function() { + var div = document.createElement( "div" ); + div.style.minHeight = "100px"; + + document.body.appendChild( div ); + $.support.minHeight = div.offsetHeight === 100; + document.body.removeChild( div ).style.display = "none"; + + div = null; +}); + +// deprecated $.extend( $.ui, { // $.ui.plugin is deprecated. Use the proxy pattern instead. plugin: { |