Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is jQuery UI accordion open/close animation so choppy?

I've been trying to figure this one out and I just can't see any issues - as well, the same accordion (same jqueryui version 1.9.2) works with no issues on another site, I even switched the theme to use the same one as the other site and I still get the choppiness on this one.

And it shouldn't be the jquery ui theme either as it's working fine here

Any ideas what it might be?

like image 273
tsdexter Avatar asked Mar 19 '13 13:03

tsdexter


1 Answers

For future readers, I have also experienced this issue when I hadn't wrapped the content of my accordion row in a div tag:

Bad:

        <div class="accordion">
            <h3>Delivery Address</h3>
            <table class="address">
                <tr><td>...</td></tr>
            </table>
        </div>

Good:

        <div class="accordion">
            <h3>Delivery Address</h3>
            <div>
                <table class="address">
                    <tr><td>...</td></tr>
                </table>
            </div>
        </div>
like image 68
Max Mumford Avatar answered Sep 19 '22 13:09

Max Mumford