Results 1 to 2 of 2

Thread: JsDOMenuBar goes UP off the screen

  1. #1
    Join Date
    Mar 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default JsDOMenuBar goes UP off the screen

    1) Script Title: "JsDOMenuBar version 1.11"

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

    3) Describe problem:

    If the window size is SHORTER than the height of a sub-menu then the menu goes UP off the window. I want the menu to go down and NEVER to go up.

    Please help, thanks!

  2. #2
    Join Date
    Mar 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I figured this out myself:

    Code:
    /*
    Get the top position of the menu bar menu.
    */
    function getMainMenuBarMenuTopPos(menuBarObj, menuBarItemObj, menuObj, y) { 
        return y;
    }
    
    
    
    /*
    Get the top position of the submenu.
    */
    function getSubMenuTopPos(menuObj, y, offset) { // Private method
      var top = getPropIntVal(menuObj, btw);
      var bottom = getPropIntVal(menuObj, bbw);
        if (safari) {
          return y - top;
        }
        else {
          return y;
        }
    }

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
  •