PDA

View Full Version : Resolved Drill Down Menu height problem



Hassang
04-04-2010, 03:51 PM
Script: Drill Down Menu (v1.6)

http://www.dynamicdrive.com/dynamicindex1/drilldownmenu.htm

Hi everyone, I have a problem about the height of the drill down menu, I put a div under it, it's ok when it's at the root but when I go further in the menu and there are less links than the root, the div after the menu stays at its position and doesn't go up, there is a blanc space between the div of the menu and the next one. I know that's because we set the menuheight in the script first but isn't there a way for that height to be automatically set up ?

I mean if there are more links, it just expand (no scroll inside the div) and if there are less links the height just shrink and let whatever divs after it to follow it.

I don't know if I made myself clear, but I really need to change the height's behaviour.

Thanks a lot for your help.

ddadmin
04-05-2010, 08:13 AM
Sure, try the below modified .js file, which should cause the menu to resize to the currently shown UL list each time.

Hassang
04-05-2010, 09:20 AM
Whoaaaaaaah !
Thanks a lot for your help, it just work perfectly. You sure are a JS Ninja :]

Which parameter did you change inside the js file ?

Brrt
04-07-2014, 01:36 PM
Is this file still available?

macramalho
05-20-2014, 11:54 AM
I make mine the last user comments, is this file still available?