From 99694e6fec88c0fbb10144f856073f01cd44091f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 7 Sep 2010 09:28:22 -0400 Subject: [PATCH] Core: Added $.support.minHeight. Fixes #6026 - Core: Add jQuery.support.minHeight. --- ui/jquery.ui.core.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) 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: { -- 2.39.5