How to disable anticollision ?

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
User avatar
yadin
Super Advanced
Super Advanced
Posts: 69
Joined: Sun May 19, 2002 8:23 pm
Location: State College, PA, USA
Contact:

How to disable anticollision ?

Post by yadin »

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.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: How to disable anticollision ?

Post by Andy »

Hi,

Do you have a URL for us to look at?

Cheers
Andy
peter@pixco.com
Beginner
Beginner
Posts: 7
Joined: Sun May 19, 2002 7:49 pm

Re: How to disable anticollision ?

Post by peter@pixco.com »

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.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: How to disable anticollision ?

Post by Andy »

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
peter@pixco.com
Beginner
Beginner
Posts: 7
Joined: Sun May 19, 2002 7:49 pm

Re: How to disable anticollision ?

Post by peter@pixco.com »

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.
peter@pixco.com
Beginner
Beginner
Posts: 7
Joined: Sun May 19, 2002 7:49 pm

Re: How to disable anticollision ?

Post by peter@pixco.com »

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
Post Reply