vbmenu popup in wrong position

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Giorno
    Member
    • Dec 2005
    • 33
    • 3.8.x

    vbmenu popup in wrong position

    See attachment or website.

    I found this but it's for and old vBulletin version.
    Attached Files
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    Try this. Create a new style and choose no parent style. This will force it to use the default templates. Then change to this style and view your forums with it. Do you have the same problem?

    If you do, empty your browser cache, close all browser windows and try again.

    If you do not have this problem with the original templates, then this means the problem is with one or more of your custom templates. You need to revert your templates, then redo your changes.
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment

    • cellarius
      Senior Member
      • Aug 2005
      • 4586
      • 3.8.x

      #3
      Steve, this problem has been known for years and confirmed to exist in the standard style, too, as long as you wrap your forum in div containers that are relatively positioned. It's a problem with the javascript (see the thread the OP linked to). I personally found it very frustrating that this was never fixed in the 3.x series, but hopefully this will be past with vB4 is out.

      Comment

      • Giorno
        Member
        • Dec 2005
        • 33
        • 3.8.x

        #4
        exactly cellarius!

        do you know if that modified .js in the thread I linkded works with 3.8.x too?

        Comment

        • cellarius
          Senior Member
          • Aug 2005
          • 4586
          • 3.8.x

          #5
          No, can't tell you. I soved the problem by replacing the problematic div with a table. I was too lazy to always edit the javascript file. You'd have to try.

          Comment

          • Steve Machol
            Former Customer Support Manager
            • Jul 2000
            • 154488

            #6
            In that case I suggest posting in the Suggestions forum.
            Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
            Change CKEditor Colors to Match Style (for 4.1.4 and above)

            Steve Machol Photography


            Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


            Comment

            • Giorno
              Member
              • Dec 2005
              • 33
              • 3.8.x

              #7
              This worked for me!

              Comment

              • zlos
                Senior Member
                • Jul 2004
                • 183
                • 3.8.x

                #8
                Here is the function in vbulletin_menu.js, which works for me in quite a complicated div absolute-relative situation:

                Code:
                vB_Popup_Menu.prototype.fetch_offset = function(E)
                {
                    var left_offset = E.offsetLeft;
                    var top_offset = E.offsetTop;
                    var obj_orig = E;
                    var obj_menu = document.getElementById(E.id + '_menu');
                    var i = 0;
                
                    while ((E = E.offsetParent) != null) i++;
                    while ((obj_menu = obj_menu.offsetParent) != null) i--;
                
                    E = obj_orig;
                
                    while(i > 0)
                    {
                        E = E.offsetParent;
                        left_offset += E.offsetLeft;
                        top_offset += E.offsetTop;
                        i--;
                    }
                
                    return { 'left' : left_offset, 'top' : top_offset };
                };
                Make a copy of the current one and replace the function with mine.

                Good luck!

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...