Love this module, Thanks.

I found that if the accordion is on a scrolled page, when you click on a header, the page snaps to the top of the screen.

This is because of the href="#" in panels_accordion.module forces the browser (in my case firefox 3) to go to a non-existent bookmark on the page and so scrolls up.

$pane->subject = '' .strip_tags($pane->title, '

Only local images are allowed.'). '

';
$pane->title = '' .strip_tags($pane->title, '

Only local images are allowed.'). '

';

I changed this too:
$pane->subject = '' .strip_tags($pane->title, '

Only local images are allowed.'). '

';
$pane->title = '' .strip_tags($pane->title, '

Only local images are allowed.'). '

';

This fixes the scrolling problem, but does mean that the pointer is a text selector rather than a hand for the link.
I corrected that by putting this in my css.

#navMain a:hover {
cursor: pointer;
}

My accordion had a div around it like this:

Comments

asak’s picture

In my case, both panes are open, and clicking the title takes me back to the top of the screen.

Is this the same as your case?
Do your panes actually collapse?

asak’s picture

Could you possibly paste your code again, between <code>...</code> tags ?

I'm having the same problem...

Thanks!

davidburns’s picture

Status: Active » Closed (fixed)

updated dev branch... doing new beta release soon
this should address those issues