Open DHTML Menu - expanded menu
hrpo - June 2, 2009 - 13:32
| Project: | DHTML Menu |
| Version: | 6.x-3.4 |
| Component: | User Interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
but should be closed. What's wrong? I got three menus and after refreshing page second is always expanded. I want it closed? What should I do?

#1
I need more details. :) There are two reasons a menu can start out as expanded when you load a page:
- You opened it on a previous page and never closed it. DHTML Menu stores the state of opened menus with a cookie, so the menu will remain open on new pages.
- You are on a page whose menu item lies inside the menu. This is called the "active trail", and menus containing the active trail are always opened so you don't lose your place on the site.
If neither of this happened, then you may have a bug. If it's one of the above, then unfortunately you can't disable either of these right now, but a feature for it is in development.
#2
i have the same problem. dhtml menu is always expanded. i've tried closing all menus then navigating to other pages (which aren't active trails) and the menu is always expanded. if you tell me what details do you need i can give them to you.
#3
well, the issue was due to the override of the display:none properties of li.start-collapsed in another css.
i fixed this putting "$('li.start-collapsed ul').hide();" in the javascript code.
#4
Hi,
This sounds like it could be related to an issue I'm having: http://drupal.org/node/601802
Not only are all my menus expanded, but the parents require two clicks in order to collapse.
I don't understand your fix.
I cannot find li.start-collapsed anywhere.
Also, which javascript did you patch and what line?
#5
Having the same problem, not sure why but some of my menus will remain expanded all the time even when they are not supposed to! would Appreciate a fix for this, It seems to be a random problem. Thanks Tom
#6
Conversely, I'd like to know how to set this (open expanded) on a menu by default!
#7
I'd also like to know how to open a menu expanded. Any solutions?
#8
I think I found it, though I'm going off memory:
admin->build->menus
Choose the menu you want. In there you can choose to start menu items expanded.
#9
Appears to be a duplicate of this closed issue: #344958: Expand items that are set to be always expanded.