From: David Serduke Date: Sat, 12 Jan 2008 01:06:37 +0000 (+0000) Subject: Fixed an edge case in show() where the css says the display should be none. In that... X-Git-Tag: 1.2.2~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d36382e9a3fa604597d400d1084a2424f0d3eb80;p=jquery.git Fixed an edge case in show() where the css says the display should be none. In that case force 'block' so it will actually show. --- diff --git a/src/fx.js b/src/fx.js index b4606a82f..64cfbc625 100644 --- a/src/fx.js +++ b/src/fx.js @@ -10,6 +10,9 @@ jQuery.fn.extend({ if ( jQuery.css(this,"display") == "none" ) { var elem = jQuery("<" + this.tagName + " />").appendTo("body"); this.style.display = elem.css("display"); + // handle an edge condition where css is - div { display:none; } or similar + if (this.style.display == "none") + this.style.display = "block"; elem.remove(); } }).end();