Commit d36382e9 authored by David Serduke's avatar David Serduke

Fixed an edge case in show() where the css says the display should be none. ...

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.
parent b91eef07
...@@ -10,6 +10,9 @@ jQuery.fn.extend({ ...@@ -10,6 +10,9 @@ jQuery.fn.extend({
if ( jQuery.css(this,"display") == "none" ) { if ( jQuery.css(this,"display") == "none" ) {
var elem = jQuery("<" + this.tagName + " />").appendTo("body"); var elem = jQuery("<" + this.tagName + " />").appendTo("body");
this.style.display = elem.css("display"); 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(); elem.remove();
} }
}).end(); }).end();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment