Results 1 to 3 of 3

Thread: AnyLink Drop Down Menu - drops up not down with long list

  1. #1
    Join Date
    May 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default AnyLink Drop Down Menu - drops up not down with long list

    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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

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

    Code:
    //if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
    //edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
    That should get it.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    May 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    That does the trick! Thanks John!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •