aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.accordion.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ui.accordion.js')
-rw-r--r--ui/ui.accordion.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js
index 911499baa..d3bbce8e4 100644
--- a/ui/ui.accordion.js
+++ b/ui/ui.accordion.js
@@ -216,11 +216,10 @@ $.widget("ui.accordion", {
maxHeight -= $(this).outerHeight(true);
});
- var maxPadding = 0;
this.headers.next().each(function() {
- maxPadding = Math.max(maxPadding, $(this).innerHeight() - $(this).height());
- }).height(Math.max(0, maxHeight - maxPadding))
- .css('overflow', 'auto');
+ var padding = $(this).innerHeight() - $(this).height();
+ $(this).height(Math.max(0, maxHeight - padding));
+ }).css('overflow', 'auto');
} else if ( o.autoHeight ) {
maxHeight = 0;