diff options
Diffstat (limited to 'ui/ui.accordion.js')
-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 ) { |