aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2009-08-11 18:58:03 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2009-08-11 18:58:03 +0000
commit417d5b29b4fbfcf95ef110b7bb307a20f2b34e5e (patch)
tree65c74b651518077180435c66133ba3c4eff1656d /ui
parente132c1b363e66b0a4a03eeb17c4fdbf316c982fd (diff)
downloadjquery-ui-417d5b29b4fbfcf95ef110b7bb307a20f2b34e5e.tar.gz
jquery-ui-417d5b29b4fbfcf95ef110b7bb307a20f2b34e5e.zip
accordion: Fix for #4695
Diffstat (limited to 'ui')
-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;