Unwanted scrollbar on non-default panes of accordion widget

Unwanted scrollbar on non-default panes of accordion widget


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
UI themeroller. Try opening accordion pane 3 in themeroller with
"Redmond" theme and you'll see the same.
Is this a bug in jQuery UI accordion? Or am I getting something wrong?