Patrick
Patrick

Reputation: 2790

Jquery accordion with image, strange behavior

We have a jquery accordion that contains multiple items. Each item in the accordion is structured like this:

<div class="menuSection accordion" default="closed" state="invisible">
    <div class="title">
            <h2><img class="titleIcon" src="/contact.jpg">Neem contact op</h2>
        <span class="accordion_openclose closed"></span>
    </div>
    <div class="menuContent" style="display: none; ">
        Content!
    </div>
</div>

Whenever I collapse one of the items in older versions of IE the image that is in the bar is lagging behind (around 5 seconds). This happens also in compatibility mode. Not in any other browsers.

Any idea what this could be?

Upvotes: 0

Views: 322

Answers (1)

Ryan
Ryan

Reputation: 1395

Try removing the position:relative attribute within the .titleIcon class.

IE7 doesn't seem to like it. I couldn't reproduce the bug in IE8+.

Upvotes: 1

Related Questions