Accordion: Fixed resize method for autoHeight. Fixes #5406 - autoHeight resize not working.

This commit is contained in:
Scott González 2010-07-13 09:40:46 -04:00
parent 551bf6e1e7
commit ba387ce1c5

View File

@ -236,7 +236,7 @@ $.widget("ui.accordion", {
} else if ( o.autoHeight ) {
maxHeight = 0;
this.headers.next().each(function() {
maxHeight = Math.max(maxHeight, $(this).height());
maxHeight = Math.max(maxHeight, $(this).height("").height());
}).height(maxHeight);
}