Skip to content

Commit 99694e6

Browse files
committed
Core: Added $.support.minHeight. Fixes #6026 - Core: Add jQuery.support.minHeight.
1 parent d80e223 commit 99694e6

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

ui/jquery.ui.core.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ $.extend( $.ui, {
5656
}
5757
});
5858

59-
//jQuery plugins
59+
// plugins
6060
$.fn.extend({
6161
_focus: $.fn.focus,
6262
focus: function( delay, fn ) {
@@ -174,7 +174,7 @@ $.each( [ "Width", "Height" ], function( i, name ) {
174174
};
175175
});
176176

177-
//Additional selectors
177+
// selectors
178178
function visible( element ) {
179179
return !$( element ).parents().andSelf().filter(function() {
180180
return $.curCSS( this, "visibility" ) === "hidden" ||
@@ -215,10 +215,23 @@ $.extend( $.expr[ ":" ], {
215215
}
216216
});
217217

218+
// support
219+
$(function() {
220+
var div = document.createElement( "div" );
221+
div.style.minHeight = "100px";
222+
223+
document.body.appendChild( div );
224+
$.support.minHeight = div.offsetHeight === 100;
225+
document.body.removeChild( div ).style.display = "none";
226+
227+
div = null;
228+
});
229+
218230

219231

220232

221233

234+
// deprecated
222235
$.extend( $.ui, {
223236
// $.ui.plugin is deprecated. Use the proxy pattern instead.
224237
plugin: {

0 commit comments

Comments
 (0)