Accordion: Fixed weird behavior on accordion animations in IE. Fixed #5421 - Accordion header margins disappear in IE 8

This commit is contained in:
Alex Dovenmuehle 2011-01-12 21:32:51 -05:00 committed by Scott González
parent 4e289e8962
commit 3471bd66e0

View File

@ -503,6 +503,8 @@ $.widget( "ui.accordion", {
// other classes are removed before the animation; this one needs to stay until completed // other classes are removed before the animation; this one needs to stay until completed
this.toHide.removeClass( "ui-accordion-content-active" ); this.toHide.removeClass( "ui-accordion-content-active" );
// Work around for rendering bug in IE (#5421)
this.toHide.parent()[0].className = this.toHide.parent()[0].className;
this._trigger( "change", null, this.data ); this._trigger( "change", null, this.data );
} }