From 7a5803057952f6fdbc2f423d1fadc36b448df057 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Fri, 26 Dec 2008 10:18:38 +0000 Subject: accordion: Fixed #3682, setting overflow:auto for fillSpace:true accordions; added demo --- ui/ui.accordion.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ui') diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js index 39dfc55bf..2fa08dd21 100644 --- a/ui/ui.accordion.js +++ b/ui/ui.accordion.js @@ -141,7 +141,8 @@ $.widget("ui.accordion", { var maxPadding = 0; options.headers.next().each(function() { maxPadding = Math.max(maxPadding, $(this).innerHeight() - $(this).height()); - }).height(maxHeight - maxPadding); + }).height(maxHeight - maxPadding) + .css('overflow', 'auto'); } else if ( options.autoHeight ) { maxHeight = 0; options.headers.next().each(function() { @@ -207,7 +208,7 @@ function toggle(toShow, toHide, data, clickedActive, down) { toHide: toHide, complete: complete, down: down, - autoHeight: options.autoHeight + autoHeight: options.autoHeight || options.fillSpace }; } else { animOptions = { @@ -215,7 +216,7 @@ function toggle(toShow, toHide, data, clickedActive, down) { toHide: toHide, complete: complete, down: down, - autoHeight: options.autoHeight + autoHeight: options.autoHeight || options.fillSpace }; } -- cgit v1.2.3