In my UI I have an accordion setup like this:
Section 1 ...content... //
for me doing following worked accurately.
$( "#accordion" ).accordion({ autoHeight: false,
});