]> source.dussan.org Git - jquery.git/commitdiff
Fixed an edge case in show() where the css says the display should be none. In that...
authorDavid Serduke <davidserduke@gmail.com>
Sat, 12 Jan 2008 01:06:37 +0000 (01:06 +0000)
committerDavid Serduke <davidserduke@gmail.com>
Sat, 12 Jan 2008 01:06:37 +0000 (01:06 +0000)
src/fx.js

index b4606a82fc49250a6effe0adaafdfe9ab1ca5614..64cfbc62525123464d6c570772d27d9887375169 100644 (file)
--- 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();