Turn off SubMenu display on the Left

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
webster
Beginner
Beginner
Posts: 2
Joined: Mon Aug 23, 2010 10:18 am

Turn off SubMenu display on the Left

Post by webster »

Hello,

I need to prevent menu from displaying submenu popups on the left side - normally they pop out to the right but when your menu is close the the right edge of the browser window they switch to the left - which my client finds confusing and wants me to turn off. Does anyone have a solution for this? I use menu version 5.734.

Thank you, your help is very much appreciated!
webster
Beginner
Beginner
Posts: 2
Joined: Mon Aug 23, 2010 10:18 am

Re: Turn off SubMenu display on the Left

Post by webster »

ignoreCollisions=true; seemed to do the trick.

now here is another question - is it possible to place the submenu boxes on the bottom of the already open menu (instead of to the left) in case the collision is detected?

Thanks.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Turn off SubMenu display on the Left

Post by Ruth »

Hi,

It would be possible, but I believe it would take a function to do it. The reason that the subs open to the left when the menu is too close to the right side is so that people can actually see them. If they opened right and didn't have enough room, then half of the items would not be visible.

The other option, and this would be an 'always' one, not one when ignore collisions was used, would be to set the opening position of the submenus always below the parent item. That can be done using top='offset=x'; and left='offset=x' in each submenu.

So, let's say your menu item is 30px high, you would set something like top='offset=31px'; and I think you'd have to set the left as a negative value, so, if the parent item is 100px wide then left='offset=-100px' or so. If you set these in the submenus, they will always open there, so ignorecollisions would not be necessary.

If you prefer a function, you would have to contact Milonic directly since I do not have the knowledge to create functions. There is also a section on Methods and Functions http://milonic.com/menu_methods.php This is under the DHTML Menu Item on the main site, under the quick menu reference guides.

Hope this helps

Ruth
Post Reply