r2060 - trunk/ui
r2060 - trunk/ui
Author: paul.bakaus
Date: Tue Feb 10 00:59:24 2009
New Revision: 2060
Modified:
trunk/ui/ui.accordion.js
Log:
accordion: chaining breaks if value in height() is negative (fixes #4102)
Modified: trunk/ui/ui.accordion.js
==============================================================================
--- trunk/ui/ui.accordion.js (original)
+++ trunk/ui/ui.accordion.js Tue Feb 10 00:59:24 2009
@@ -185,7 +185,7 @@
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 ) {