mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Core: Added $.support.minHeight. Fixes #6026 - Core: Add jQuery.support.minHeight.
This commit is contained in:
parent
d80e2236f6
commit
99694e6fec
17
ui/jquery.ui.core.js
vendored
17
ui/jquery.ui.core.js
vendored
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user