• Resolved ConsultCorbin

    (@consultcorbin)


    The popup position was displaying below the bottom of the window because the position is set to fixed. I removed the code that calculates and adds the offset and now it is working properly in google-chrome, firefox, and IE 7,8,9,10.

    Here is the fix:

    +++ anything-popup/anything-popup.js    2013-09-27 11:14:32.000000000 -0500
    @@ -224,30 +224,9 @@
    
        var _x = 0;
        var _y = 0;
    -   var offsetX = 0;
    -   var offsetY = 0;
    
    -   if(!window.pageYOffset)
    -   {
    -      if(!(document.documentElement.scrollTop == 0))
    -      {
    -         offsetY = document.documentElement.scrollTop;
    -         offsetX = document.documentElement.scrollLeft;
    -      }
    -      else
    -      {
    -         offsetY = document.body.scrollTop;
    -         offsetX = document.body.scrollLeft;
    -      }
    -   }
    -   else
    -   {
    -      offsetX = window.pageXOffset;
    -      offsetY = window.pageYOffset;
    -   }
    -
    -   _x = ((this.size().width-hWnd.width)/2)+offsetX;
    -   _y = ((this.size().height-hWnd.height)/2)+offsetY;
    +   _x = ((this.size().width-hWnd.width)/2);
    +   _y = ((this.size().height-hWnd.height)/2);
    
        return{x:_x,y:_y};
     }

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    https://www.ads-software.com/plugins/anything-popup/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘IE Popup Position Fix’ is closed to new replies.