Accordion issue (and fix) with fillSpace:true

Accordion issue (and fix) with fillSpace:true


There is a logical bug in accordion's .resize() method, when fillSpace
is true. It calculates the maximum padding of all content panels, and
then subtracts it from maxHeight to obtain the new panel size. This is
wrong. I, for example, need to use different paddings in different
content divs, and this approach produces wrong results in this case.
The correct thing to do is to subtract each panel's padding
individually.
I was able to fix this (in 1.7.2) by replacing this:
var maxPadding = 0;
this.headers.next().each(function() {
    maxPadding = Math.max(maxPadding, $(this).innerHeight() - $
(this).height());
}).height(Math.max(0, maxHeight - maxPadding))
with this:
this.headers.next().each(function() {
    var padding = $(this).innerHeight() - $(this).height();
    $(this).height(Math.max(0, maxHeight - padding));
})
Please integrate this fix in the dev version, and in 1.7.3.