I believe I've managed to figure this out finally.  I grabbed an
uncompressed copy of my UI build and started poking around.  I was a
little scared at first, but it started to make sense pretty quick,
even for a new guy.

The HTML uses an extra <div> to enclose my submenus and it seems the
options.active wasn't getting set in the right place, so I added an
extra .parent() to line 316 so it now looks like this - options.active
= current.parent().parent().parent().prev();

I'm not sure if this is right, but it seems to work on my 4 test
pages.  If someone knows better, I'd love to learn.

Also, it seemed, for me at lease, to make sense to enclose the
submenus in an extra div because the animation was jumping due to the
padding applied to space the items out.  Hopefully this helps someone
else.

Thanks for making javascript so easy to understand!

-Adam

On Aug 29, 12:50 pm, Adam Weis <[EMAIL PROTECTED]> wrote:
> I'm having a little problem using the UI Accordion with the navigation
> option opening the panel containing the current page.  The accordion
> is working great except for this little bug.
>
> I set up a quick demo athttp://gvartwork.com/newso you can see what
> is happening.
>
> When navigating to one of the interior pages, like under
> gvetchedintime - home, the current panel does not remain open.  I see
> in firebug that the link is being given the "current" class but the
> panel is not open.
>
> Is it a problem with my HTML setup or with my accordion
> initialization?
>
> I'm using the following to initialize the accordion:
>
>     $(function () {
>         $('#left-nav').accordion({
>             header: '.header',
>             clearStyle: true,
>             autoHeight: false,
>             selectedClass: 'open',
>             navigation: true,
>             fillSpace: false
>         });
>     });
>
> I'd really appreciate any help, as I'm completely stumped on this
> one..
>
> -Adam
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to