It's a bit outdated but as there is still no answer:
add autoHeight: false to your accordion creation. auto-height: true, which is default sizes all Compartments the same height.
html div script: (html jQuery new accordion
autoHeight: false );