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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:43

How to disable anticollision ?


Poster: yadin
Dated: Friday March 29 2002 - 4:22:09 GMT

I posted a previous problem I was experiencing under the thread "horizontal submenu offset problem (bug ?)" and seem to have located the problem.

I've read here somewhere that there is an anticollision mechanism built into this menu to prevent menus from falling off the screen.
The menu detects this and adjusts when neccessary.

The problem is that I have a menu that is always centered and can't fall off the screen, however the menu seems to think otherwise and adjusts itself.
If there would be a way to disable this collision detection, my problems would have been solved.

Is there anybody who knows how to disable this feature ?

thanks,
Peter.

Re: How to disable anticollision ?


Poster: Andy
Dated: Monday April 29 2002 - 16:06:29 BST

Hi,

Do you have a URL for us to look at?

Cheers
Andy

Re: How to disable anticollision ?


Poster: peter __at__ pixco.com
Dated: Monday April 29 2002 - 16:17:08 BST

Sure,

http://213.193.146.35/pis/index.asp

if I align the menu left, it works perfectly, but when centered, it works
only on the first rollover, the second and subsequent rollovers all aply
this screen width fall-off mechanism...I think...

Regards,
Peter.


ps : I just uploaded mmenu.js 3.40 beta, but it behaves in the same way.

Re: How to disable anticollision ?


Poster: Andy
Dated: Monday April 29 2002 - 16:37:20 BST

The menu has never been used in the way that you specify. However, I consider the problem to be a very slight bug and I'm sending you a copy of the beta code along with an updated array file.

You can now specify center as the Screen Position and this over-rides all other properties.

Cheers
Andy

Re: How to disable anticollision ?


Poster: peter __at__ pixco.com
Dated: Monday April 29 2002 - 16:53:42 BST

Hi Andy,

This is fantastic ! It works !

However, this seemed to have introduced a new problem.
Now it's the first rollover that displays an offset (this time all submenus shift to the right of the screen) and the second and following rollovers display the menus perfectly.

Is there a way to emulate a fake-first-rollover on pageload...

I'm being annoying, sorry for that, it's just that I'd love to use this menu as it's the best menu I've ever seen.

Thanks,
Peter.

Re: How to disable anticollision ?


Poster: peter __at__ pixco.com
Dated: Tuesday April 30 2002 - 10:50:57 BST

Here's an update :

The menus work fine after the first sequence of rollovers : i.e. you need to pass at least once over each menuitem before the submenus display as they should.


I just found out that when I resize my browser so that the submenus, which are shifted to the right on pageload and should fall off the screen, get re-located at their correct position.
Again, this happens only on the first-time rollover and not on the following rollovers.

Because I (and the users) have big screens :-) or high resolutions, the submenus don't fall off the screen, so the first-and wrong location of the submenus is very apparant.

I suspect that a first-time rollover gets treated different than the following rollovers (over each item).
I've tried to search the mmenu.js but can't understand anything in there...

I'll post this in the beta forum too.

Thanks,
Peter