Okay, I just posted a very ugly hack for this, but then I hopped in to the jQuery Accordion docs and found one simple line that did the trick.
Please note this requires modifying the plugin itself, which I typically never condone, but it does the job and doesn’t really futz with the plugin too much.
In the plugin, starting on line 114 you’ll find this code
$query_atts = shortcode_atts( array(
'autoHeight' => false,
'disabled' => false,
'active' => 0,
'animated' => 'slide',
'clearStyle' => false,
'collapsible' => false,
'event' => 'click',
'fillSpace' => false
), $attr);
What you’re going to want to do is drop a new line in that shortcode_atts array that looks like this: ‘heightStyle’ => ‘content’
Don’t forget to include a , on the previous line if you’re adding. Here’s my code below
$query_atts = shortcode_atts( array(
'autoHeight' => false,
'disabled' => false,
'active' => 0,
'animated' => 'slide',
'clearStyle' => false,
'collapsible' => false,
'event' => 'click',
'fillSpace' => false,
'heightStyle' => 'content'
), $attr);
Again, it’s never ideal to modify the plugin like this, but it does work. If I can figure out how to properly integrate this in to where the user can set that variable I’ll fork the plugin on GitHub and see if I can get the original developer to pull it in to their version.