diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2008-12-26 10:18:38 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2008-12-26 10:18:38 +0000 |
commit | 7a5803057952f6fdbc2f423d1fadc36b448df057 (patch) | |
tree | 7425f1838259d29060426b0c16fa443ca45f4b57 /ui/ui.accordion.js | |
parent | d1620877db4ce4ecc3385dc6a628e13942f83ca9 (diff) | |
download | jquery-ui-7a5803057952f6fdbc2f423d1fadc36b448df057.tar.gz jquery-ui-7a5803057952f6fdbc2f423d1fadc36b448df057.zip |
accordion: Fixed #3682, setting overflow:auto for fillSpace:true accordions; added demo
Diffstat (limited to 'ui/ui.accordion.js')
-rw-r--r-- | ui/ui.accordion.js | 7 |
1 files changed, 4 insertions, 3 deletions
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 }; } |