Core: Added $.support.minHeight. Fixes #6026 - Core: Add jQuery.support.minHeight.

This commit is contained in:
Scott González 2010-09-07 09:28:22 -04:00
parent d80e2236f6
commit 99694e6fec

17
ui/jquery.ui.core.js vendored
View File

@ -56,7 +56,7 @@ $.extend( $.ui, {
} }
}); });
//jQuery plugins // plugins
$.fn.extend({ $.fn.extend({
_focus: $.fn.focus, _focus: $.fn.focus,
focus: function( delay, fn ) { focus: function( delay, fn ) {
@ -174,7 +174,7 @@ $.each( [ "Width", "Height" ], function( i, name ) {
}; };
}); });
//Additional selectors // selectors
function visible( element ) { function visible( element ) {
return !$( element ).parents().andSelf().filter(function() { return !$( element ).parents().andSelf().filter(function() {
return $.curCSS( this, "visibility" ) === "hidden" || 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, { $.extend( $.ui, {
// $.ui.plugin is deprecated. Use the proxy pattern instead. // $.ui.plugin is deprecated. Use the proxy pattern instead.
plugin: { plugin: {