aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2009-02-10 08:59:24 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2009-02-10 08:59:24 +0000
commit8ccbc0ac55c53b86b6041a25a03901c8a145a50d (patch)
tree6c929dbb4f211b90ad17b0f936a9d7776c0bde6e /ui
parent3677e62f15f580e13cee6cb081b0cc98949493b9 (diff)
downloadjquery-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.js2
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 ) {