@@ -39,7 +39,7 @@ function PlacementCalculator() {
39
39
switch ( placement ) {
40
40
case 'n' :
41
41
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 ) ;
43
43
break ;
44
44
case 'e' :
45
45
coords . set ( 'left' , position . left + offset - session . positionCompensation . left ) ;
@@ -54,19 +54,19 @@ function PlacementCalculator() {
54
54
coords . set ( 'right' , session . windowWidth - position . left + offset - session . positionCompensation . right ) ;
55
55
break ;
56
56
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 ) ;
58
58
coords . set ( 'right' , session . windowWidth - position . left - session . positionCompensation . right - 20 ) ;
59
59
break ;
60
60
case 'nw-alt' :
61
61
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 ) ;
63
63
break ;
64
64
case 'ne' :
65
65
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 ) ;
67
67
break ;
68
68
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 ) ;
70
70
coords . set ( 'right' , session . windowWidth - position . left - session . positionCompensation . right ) ;
71
71
break ;
72
72
case 'sw' :
0 commit comments