Skip to content
Permalink
Browse files

accordion: chaining breaks if value in height() is negative (fixes #4…

…102)
  • Loading branch information
Paul Bakaus
Paul Bakaus committed Feb 10, 2009
1 parent 3677e62 commit 8ccbc0ac55c53b86b6041a25a03901c8a145a50d
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 ) {

0 comments on commit 8ccbc0a

Please sign in to comment.
You can’t perform that action at this time.