@@ -39,7 +39,7 @@ function PlacementCalculator() {
3939 switch ( placement ) {
4040 case 'n' :
4141 coords . set ( 'left' , position . left - ( tipWidth / 2 ) - session . positionCompensation . left ) ;
42- coords . set ( 'top ' , position . top - tipHeight - offset - session . positionCompensation . top ) ;
42+ coords . set ( 'bottom ' , session . windowHeight - position . top + offset - session . positionCompensation . bottom ) ;
4343 break ;
4444 case 'e' :
4545 coords . set ( 'left' , position . left + offset - session . positionCompensation . left ) ;
@@ -54,19 +54,19 @@ function PlacementCalculator() {
5454 coords . set ( 'right' , session . windowWidth - position . left + offset - session . positionCompensation . right ) ;
5555 break ;
5656 case 'nw' :
57- coords . set ( 'top ' , position . top - tipHeight - offset - session . positionCompensation . top ) ;
57+ coords . set ( 'bottom ' , session . windowHeight - position . top + offset - session . positionCompensation . bottom ) ;
5858 coords . set ( 'right' , session . windowWidth - position . left - session . positionCompensation . right - 20 ) ;
5959 break ;
6060 case 'nw-alt' :
6161 coords . set ( 'left' , position . left - session . positionCompensation . left ) ;
62- coords . set ( 'top ' , position . top - tipHeight - offset - session . positionCompensation . top ) ;
62+ coords . set ( 'bottom ' , session . windowHeight - position . top + offset - session . positionCompensation . bottom ) ;
6363 break ;
6464 case 'ne' :
6565 coords . set ( 'left' , position . left - session . positionCompensation . left - 20 ) ;
66- coords . set ( 'top ' , position . top - tipHeight - offset - session . positionCompensation . top ) ;
66+ coords . set ( 'bottom ' , session . windowHeight - position . top + offset - session . positionCompensation . bottom ) ;
6767 break ;
6868 case 'ne-alt' :
69- coords . set ( 'top ' , position . top - tipHeight - offset - session . positionCompensation . top ) ;
69+ coords . set ( 'bottom ' , session . windowHeight - position . top + offset - session . positionCompensation . bottom ) ;
7070 coords . set ( 'right' , session . windowWidth - position . left - session . positionCompensation . right ) ;
7171 break ;
7272 case 'sw' :
0 commit comments