Try the fillSpace option if this helps:
http://jqueryui.com/demos/accordion/#option-autoHeight
fillSpace
If set, the accordion completely fills the height of the parent
element. Overrides autoheight.
Code examples
Initialize a accordion with the fillSpace option specified.
$('.selector').accordion({ fillSpace: true });
Get or set the fillSpace option, after init.
//getter
var fillSpace = $('.selector').accordion('option', 'fillSpace');
//setter
$('.selector').accordion('option', 'fillSpace', true);
On Apr 1, 8:29 pm, Jaanus Kase <[email protected]> wrote:
> I have a jQuery UI accordion where the first pane has little content
> but the third, non-default pane has lots of content. I create the
> accordion with default parameters. When I switch to the third pane, it
> gets a scrollbar, which I think is a bug. It should accommodate the
> whole content, shouldn't it?
>
> I tried swapping the panes and the behavior is correct then. When the
> default pane has the longest content, it doesn't get a scrollbar.
>
> What also puzzles me is that you can see this same behavior on jQuery
> UIthemeroller. Try opening accordion pane 3 inthemerollerwith
> "Redmond" theme and you'll see the same.
>
> Is this a bug in jQuery UI accordion? Or am I getting something wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---