@@ -38,52 +38,52 @@ function PlacementCalculator() {
3838 // calculate the appropriate x and y position in the document
3939 switch ( placement ) {
4040 case 'n' :
41- coords . set ( 'left' , position . left - ( tipWidth / 2 ) - session . positionCompensation . left ) ;
42- coords . set ( 'bottom' , session . windowHeight - position . top + offset - session . positionCompensation . bottom ) ;
41+ coords . set ( 'left' , position . left - ( tipWidth / 2 ) ) ;
42+ coords . set ( 'bottom' , session . windowHeight - position . top + offset ) ;
4343 break ;
4444 case 'e' :
45- coords . set ( 'left' , position . left + offset - session . positionCompensation . left ) ;
46- coords . set ( 'top' , position . top - ( tipHeight / 2 ) - session . positionCompensation . top ) ;
45+ coords . set ( 'left' , position . left + offset ) ;
46+ coords . set ( 'top' , position . top - ( tipHeight / 2 ) ) ;
4747 break ;
4848 case 's' :
49- coords . set ( 'left' , position . left - ( tipWidth / 2 ) - session . positionCompensation . left ) ;
50- coords . set ( 'top' , position . top + offset - session . positionCompensation . top ) ;
49+ coords . set ( 'left' , position . left - ( tipWidth / 2 ) ) ;
50+ coords . set ( 'top' , position . top + offset ) ;
5151 break ;
5252 case 'w' :
53- coords . set ( 'top' , position . top - ( tipHeight / 2 ) - session . positionCompensation . top ) ;
54- coords . set ( 'right' , session . windowWidth - position . left + offset - session . positionCompensation . right ) ;
53+ coords . set ( 'top' , position . top - ( tipHeight / 2 ) ) ;
54+ coords . set ( 'right' , session . windowWidth - position . left + offset ) ;
5555 break ;
5656 case 'nw' :
57- coords . set ( 'bottom' , session . windowHeight - position . top + offset - session . positionCompensation . bottom ) ;
58- coords . set ( 'right' , session . windowWidth - position . left - session . positionCompensation . right - 20 ) ;
57+ coords . set ( 'bottom' , session . windowHeight - position . top + offset ) ;
58+ coords . set ( 'right' , session . windowWidth - position . left - 20 ) ;
5959 break ;
6060 case 'nw-alt' :
61- coords . set ( 'left' , position . left - session . positionCompensation . left ) ;
62- coords . set ( 'bottom' , session . windowHeight - position . top + offset - session . positionCompensation . bottom ) ;
61+ coords . set ( 'left' , position . left ) ;
62+ coords . set ( 'bottom' , session . windowHeight - position . top + offset ) ;
6363 break ;
6464 case 'ne' :
65- coords . set ( 'left' , position . left - session . positionCompensation . left - 20 ) ;
66- coords . set ( 'bottom' , session . windowHeight - position . top + offset - session . positionCompensation . bottom ) ;
65+ coords . set ( 'left' , position . left - 20 ) ;
66+ coords . set ( 'bottom' , session . windowHeight - position . top + offset ) ;
6767 break ;
6868 case 'ne-alt' :
69- coords . set ( 'bottom' , session . windowHeight - position . top + offset - session . positionCompensation . bottom ) ;
70- coords . set ( 'right' , session . windowWidth - position . left - session . positionCompensation . right ) ;
69+ coords . set ( 'bottom' , session . windowHeight - position . top + offset ) ;
70+ coords . set ( 'right' , session . windowWidth - position . left ) ;
7171 break ;
7272 case 'sw' :
73- coords . set ( 'top' , position . top + offset - session . positionCompensation . top ) ;
74- coords . set ( 'right' , session . windowWidth - position . left - session . positionCompensation . right - 20 ) ;
73+ coords . set ( 'top' , position . top + offset ) ;
74+ coords . set ( 'right' , session . windowWidth - position . left - 20 ) ;
7575 break ;
7676 case 'sw-alt' :
77- coords . set ( 'left' , position . left - session . positionCompensation . left ) ;
78- coords . set ( 'top' , position . top + offset - session . positionCompensation . top ) ;
77+ coords . set ( 'left' , position . left ) ;
78+ coords . set ( 'top' , position . top + offset ) ;
7979 break ;
8080 case 'se' :
81- coords . set ( 'left' , position . left - session . positionCompensation . left - 20 ) ;
82- coords . set ( 'top' , position . top + offset - session . positionCompensation . top ) ;
81+ coords . set ( 'left' , position . left - 20 ) ;
82+ coords . set ( 'top' , position . top + offset ) ;
8383 break ;
8484 case 'se-alt' :
85- coords . set ( 'top' , position . top + offset - session . positionCompensation . top ) ;
86- coords . set ( 'right' , session . windowWidth - position . left - session . positionCompensation . right ) ;
85+ coords . set ( 'top' , position . top + offset ) ;
86+ coords . set ( 'right' , session . windowWidth - position . left ) ;
8787 break ;
8888 }
8989
0 commit comments