More explicitly, I was trying to solve this weird bug where using jQuery slideUp/slideDown I would get some elements in Internet Explorer 8 to disregard some CSS rules. Mainly the header of a collapsible panel would suddenly and intermittently seem to lose a margin-bottom: 18px !important; rule. In order to fix this instead of panel.slideUp(); I used
panel.slideUp(400/*the default value*/,function() { setTimeout(function() { header.each(function(){ this.className+=''; }); },1); });where panel is the collapsible part and header is the clickable part. Same for slideDown.
No comments:
Post a Comment