jQuery Accordion fillSpace option Firefox 3 isue
Hi, all!
This is what i found when i was working on my latest project:
when i set the option fillSpace:true, height of the browser window,
returned to maxHeight, is not correct, but on the second loop it is.
This is what i change and it works fine.
before (at line 65):
var maxHeight = $(container).parent().height() - toDec;
options.headers.each(function() {
maxHeight -= $(this).outerHeight();
alert($(container).parent().height());
});
after:
var toDec = 0;
options.headers.each(function() {
toDec += $(this).outerHeight();
alert($(container).parent().height());
});
var maxHeight = $(container).parent().height() - toDec;
kiddin.