PDA

View Full Version : AnyLink Drop Down Menu - drops up not down with long list



lukemcd
05-02-2005, 06:53 PM
I have setup AnyLink Drop Down Menu for a gallery website and it has been working great. But I added a long list of artists as a dropwdown. Now, if the depth of the dropdown list exceeds the height of the browser window it drops up instead of down. This is the case with Firefox and Safari. Is there a script setting that can be adjusted to prevent this?

See it in action:
http://www.wesseloconnor.com/artists/index.php

Any help appreciated. thanks.
- Luke

jscheuer1
05-04-2005, 02:55 AM
That is actually a feature of this script but, this is not the first time I've seen it cause problems in certain layouts. To disable this feature, find these two lines in the code:


if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeightand comment them out, like so:


//if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
//edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeightThat should get it.

lukemcd
05-04-2005, 09:48 PM
That does the trick! Thanks John!