Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:05

Turn off SubMenu display on the Left


Poster: webster
Dated: Monday August 23 2010 - 19:28:39 BST

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!

Re: Turn off SubMenu display on the Left


Poster: webster
Dated: Monday August 23 2010 - 21:30:09 BST

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.

Re: Turn off SubMenu display on the Left


Poster: Ruth
Dated: Tuesday August 24 2010 - 2:32:22 BST

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://www.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