From: Scott González Date: Tue, 7 Sep 2010 13:28:22 +0000 (-0400) Subject: Core: Added $.support.minHeight. Fixes #6026 - Core: Add jQuery.support.minHeight. X-Git-Tag: 1.8.5~23 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=99694e6fec88c0fbb10144f856073f01cd44091f;p=jquery-ui.git Core: Added $.support.minHeight. Fixes #6026 - Core: Add jQuery.support.minHeight. --- 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: {