diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2009-02-10 08:59:24 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2009-02-10 08:59:24 +0000 |
commit | 8ccbc0ac55c53b86b6041a25a03901c8a145a50d (patch) | |
tree | 6c929dbb4f211b90ad17b0f936a9d7776c0bde6e /ui | |
parent | 3677e62f15f580e13cee6cb081b0cc98949493b9 (diff) | |
download | jquery-ui-8ccbc0ac55c53b86b6041a25a03901c8a145a50d.tar.gz jquery-ui-8ccbc0ac55c53b86b6041a25a03901c8a145a50d.zip |
accordion: chaining breaks if value in height() is negative (fixes #4102)
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.accordion.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js index 5879bbf90..679f7a017 100644 --- a/ui/ui.accordion.js +++ b/ui/ui.accordion.js @@ -185,7 +185,7 @@ $.widget("ui.accordion", { var maxPadding = 0; this.headers.next().each(function() { maxPadding = Math.max(maxPadding, $(this).innerHeight() - $(this).height()); - }).height(maxHeight - maxPadding) + }).height(Math.max(0, maxHeight - maxPadding)) .css('overflow', 'auto'); } else if ( o.autoHeight ) { |