From 497ec8588c177645082ab9ac08972b16afd1b3e8 Mon Sep 17 00:00:00 2001 From: Alex Dovenmuehle Date: Wed, 12 Jan 2011 21:32:51 -0500 Subject: [PATCH] Accordion: Fixed weird behavior on accordion animations in IE. Fixed #5421 - Accordion header margins disappear in IE 8 --- ui/jquery.ui.accordion.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index f7d0e27b2..c28473529 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -495,6 +495,8 @@ $.widget( "ui.accordion", { // other classes are removed before the animation; this one needs to stay until completed 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 ); } -- 2.39.5