Results 1 to 3 of 3

Thread: Chrome Menu: Always drop DOWN

  1. #1
    Join Date
    Sep 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Chrome Menu: Always drop DOWN

    1) Script Title: Chrome CSS Drop Down Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...rome/index.htm

    3) Describe problem:
    The menu drops out in way you can always see the whole layer. Its hard to explain, so go to http://www.dynamicdrive.com/dynamici...rome/index.htm and scroll down until the menu is at the bottom of the browser window. Now it does no longer drop down, but drop out on top of the menubar.
    Well, i think this may be a nice feature, but in my case i need to turn that off; i want the menu to drop down, nevermind if its cut.
    I hope that you can understand my problem

    Thank you a lot for your help!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    If I understand correctly then, you want to disable the feature of the menu that causes the menu to drop up when there's not enough space in the browser underneath the menu to fully display it? Not sure why you'd want to do this, but if so, find the line:

    Code:
    this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+1+"px"
    and change that to:

    Code:
    this.dropmenuobj.style.top=this.dropmenuobj.y+obj.offsetHeight+1+"px"
    That should do it.

  3. #3
    Join Date
    Sep 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Perfect, now it works as i want it to
    Thanks a lot!

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
  •