]> source.dussan.org Git - jquery-ui.git/commitdiff
Core: Added $.support.minHeight. Fixes #6026 - Core: Add jQuery.support.minHeight.
authorScott González <scott.gonzalez@gmail.com>
Tue, 7 Sep 2010 13:28:22 +0000 (09:28 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 7 Sep 2010 13:28:22 +0000 (09:28 -0400)
ui/jquery.ui.core.js

index f040ef5e1d146a5e2359638df21466c2e095f0b8..37a9892e3140c1cfcab1cc1ea9b653d865422253 100644 (file)
@@ -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: {