Hello MaryMak,
Equal Height Columns is set to recalculate the heights whenever the window is resized, but it also includes a direct JS method $.equalizeTheHeights()
that you can use to force a recalculation of the heights whenever something else like an accordion expanding happens.
The key is to hook into a JS event that fires right when the heights are ready to be measured. I’ve looked at your page but I’m not sure what method you’re using to expand the accordions. Hopefully there is a suitable event that is fired or your controlling the JS yourself so you can trigger the recalculation directly.
Here is some quick example JS that demonstrates the concept:
jQuery( '.tb-toggle' ).on( 'click', function() {
setTimeout( function() {
jQuery( '#sidebar_layout .fixed-sidebar,#sidebar_layout #content' ).equalizeTheHeights();
console.log( 'equal heights has retriggered' );
}, 1000 );
});
This method isn’t ideal, because all it does is say whenever one of the toggles is clicked, wait 1 second and then recalculate the heights. It would be more ideal to fire it immediately after the accordion has been expanded, either by hooking into a JS event fired at that point, or calling the $.equalizeTheHeights()
method directly at that point, or if you’re using CSS transitions, set the timer value above to be just after the CSS transition will be finished.
I hope this helps. If you paste the code above into the console, you’ll see the recalculation happening.