From 8ccbc0ac55c53b86b6041a25a03901c8a145a50d Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Tue, 10 Feb 2009 08:59:24 +0000 Subject: accordion: chaining breaks if value in height() is negative (fixes #4102) --- ui/ui.accordion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') 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 ) { -- cgit v1.2.3