Tree/collapse menu isn't working-pops down empty menu items

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

Re: Tree/collapse menu isn't working-pops down empty menu items

Post by nwilcox »

Hi Ruth,

This happens in all of the browsers I have on my PC - IE 6, 7, Safari, Firefox, and Opera

If you resize the browser or just resize the width, the menu stays in place and doesn't "flow"

Image
Nick Wilcox
Web Developer
ServerSide, Inc.
http://www.serverside.net
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Tree/collapse menu isn't working-pops down empty menu items

Post by Ruth »

Hi,

Well, I'm not getting that problem in IE, however there is a problem in FF, Safari, NN, the tree submenu seems to be 'moving' when you use the scroll bar or resize the window as you said. I did find a fix. Paste this at the top of your menuDevelopmentHome.js file.

Code: Select all

fixMozillaZIndex=false; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
You'll note it's changed to false here because it seems that when the menu is set to relative, when you have the zindex fix to true, it causes the tree submenu to be positioned incorrectly when you scroll the browser window or change its size. Turning it off seems to fix that.

Try that and see. Hope it works.

Ruth
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

Re: Tree/collapse menu isn't working-pops down empty menu items

Post by nwilcox »

I gave that a try and replaced it everywhere that property was set but no change. I did apply the newest version of the menu to the site

http://clients2.serverside.net/serverside/default2.aspx

Are you not getting this issue on your machine?
Nick Wilcox
Web Developer
ServerSide, Inc.
http://www.serverside.net
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Tree/collapse menu isn't working-pops down empty menu items

Post by Ruth »

Hi,

I am no longer having the issue in any browser I tested. IE6, FF1.5, NN 7, 9, Safari 3 for pc

Have you tried clearing all your cache. And you only need that fixMozilla thing to false in the actual file that is the treemenu.

Ruth
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

Re: Tree/collapse menu isn't working-pops down empty menu items

Post by nwilcox »

Hi Ruth,

Using the example from Milonic's download, as soon as I put the menu into in a table that is aligned center, the listmenu/treemenu combo does the same thing as I've experienced with my code with just Milonic and the tree menu.

The "sub-menu" is placed absolutely instead of relative and therefore doesn't move and flow when the browser is resized.

http://clients2.serverside.net/serversi ... _tree.html

This happens on every single browser on the MAC or the PC I can get my hands on today for testing:

PC: IE6, IE7, Safari, Firefox, Opera
MAC: Safari, Firefox, Opera

All browsers behave the same, no differences. The treemenu is opened and when the brwoser resizes, the submenu does not move. I've tried the Firefox toggle like you said and it doesn't work in either setting.

I can document this for Milonic but do you think it is something they will fix for a "un-supported menu"?

This seems to be a huge issue with using it you can't use it on anything but a left centered design. I'd just hate to have to throw away what I've spent all the time on getting to work 95% :(

Thank you again for your help!
Nick
Nick Wilcox
Web Developer
ServerSide, Inc.
http://www.serverside.net
Post Reply