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.
This commit is contained in:
parent
b91eef070d
commit
d36382e9a3
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue