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.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js
index d3bbce8e4..17e3cec42 100644
--- a/ui/ui.accordion.js
+++ b/ui/ui.accordion.js
@@ -217,8 +217,7 @@ $.widget("ui.accordion", {
});
this.headers.next().each(function() {
- var padding = $(this).innerHeight() - $(this).height();
- $(this).height(Math.max(0, maxHeight - padding));
+ $(this).height(Math.max(0, maxHeight - $(this).innerHeight() + $(this).height()));
}).css('overflow', 'auto');
} else if ( o.autoHeight ) {