@@ -37,54 +37,54 @@ function PlacementCalculator() {
3737
3838 // calculate the appropriate x and y position in the document
3939 switch ( placement ) {
40- case 'n' :
41- coords . set ( 'left' , position . left - ( tipWidth / 2 ) ) ;
42- coords . set ( 'bottom' , session . windowHeight - position . top + offset ) ;
43- break ;
44- case 'e' :
45- coords . set ( 'left' , position . left + offset ) ;
46- coords . set ( 'top' , position . top - ( tipHeight / 2 ) ) ;
47- break ;
48- case 's' :
49- coords . set ( 'left' , position . left - ( tipWidth / 2 ) ) ;
50- coords . set ( 'top' , position . top + offset ) ;
51- break ;
52- case 'w' :
53- coords . set ( 'top' , position . top - ( tipHeight / 2 ) ) ;
54- coords . set ( 'right' , session . windowWidth - position . left + offset ) ;
55- break ;
56- case 'nw' :
57- coords . set ( 'bottom' , session . windowHeight - position . top + offset ) ;
58- coords . set ( 'right' , session . windowWidth - position . left - 20 ) ;
59- break ;
60- case 'nw-alt' :
61- coords . set ( 'left' , position . left ) ;
62- coords . set ( 'bottom' , session . windowHeight - position . top + offset ) ;
63- break ;
64- case 'ne' :
65- coords . set ( 'left' , position . left - 20 ) ;
66- coords . set ( 'bottom' , session . windowHeight - position . top + offset ) ;
67- break ;
68- case 'ne-alt' :
69- coords . set ( 'bottom' , session . windowHeight - position . top + offset ) ;
70- coords . set ( 'right' , session . windowWidth - position . left ) ;
71- break ;
72- case 'sw' :
73- coords . set ( 'top' , position . top + offset ) ;
74- coords . set ( 'right' , session . windowWidth - position . left - 20 ) ;
75- break ;
76- case 'sw-alt' :
77- coords . set ( 'left' , position . left ) ;
78- coords . set ( 'top' , position . top + offset ) ;
79- break ;
80- case 'se' :
81- coords . set ( 'left' , position . left - 20 ) ;
82- coords . set ( 'top' , position . top + offset ) ;
83- break ;
84- case 'se-alt' :
85- coords . set ( 'top' , position . top + offset ) ;
86- coords . set ( 'right' , session . windowWidth - position . left ) ;
87- break ;
40+ case 'n' :
41+ coords . set ( 'left' , position . left - ( tipWidth / 2 ) ) ;
42+ coords . set ( 'bottom' , session . windowHeight - position . top + offset ) ;
43+ break ;
44+ case 'e' :
45+ coords . set ( 'left' , position . left + offset ) ;
46+ coords . set ( 'top' , position . top - ( tipHeight / 2 ) ) ;
47+ break ;
48+ case 's' :
49+ coords . set ( 'left' , position . left - ( tipWidth / 2 ) ) ;
50+ coords . set ( 'top' , position . top + offset ) ;
51+ break ;
52+ case 'w' :
53+ coords . set ( 'top' , position . top - ( tipHeight / 2 ) ) ;
54+ coords . set ( 'right' , session . windowWidth - position . left + offset ) ;
55+ break ;
56+ case 'nw' :
57+ coords . set ( 'bottom' , session . windowHeight - position . top + offset ) ;
58+ coords . set ( 'right' , session . windowWidth - position . left - 20 ) ;
59+ break ;
60+ case 'nw-alt' :
61+ coords . set ( 'left' , position . left ) ;
62+ coords . set ( 'bottom' , session . windowHeight - position . top + offset ) ;
63+ break ;
64+ case 'ne' :
65+ coords . set ( 'left' , position . left - 20 ) ;
66+ coords . set ( 'bottom' , session . windowHeight - position . top + offset ) ;
67+ break ;
68+ case 'ne-alt' :
69+ coords . set ( 'bottom' , session . windowHeight - position . top + offset ) ;
70+ coords . set ( 'right' , session . windowWidth - position . left ) ;
71+ break ;
72+ case 'sw' :
73+ coords . set ( 'top' , position . top + offset ) ;
74+ coords . set ( 'right' , session . windowWidth - position . left - 20 ) ;
75+ break ;
76+ case 'sw-alt' :
77+ coords . set ( 'left' , position . left ) ;
78+ coords . set ( 'top' , position . top + offset ) ;
79+ break ;
80+ case 'se' :
81+ coords . set ( 'left' , position . left - 20 ) ;
82+ coords . set ( 'top' , position . top + offset ) ;
83+ break ;
84+ case 'se-alt' :
85+ coords . set ( 'top' , position . top + offset ) ;
86+ coords . set ( 'right' , session . windowWidth - position . left ) ;
87+ break ;
8888 }
8989
9090 return coords ;
@@ -107,38 +107,38 @@ function PlacementCalculator() {
107107
108108 // calculate the appropriate x and y position in the document
109109 switch ( placement ) {
110- case 'n' :
111- left = objectOffset . left + objectWidth / 2 ;
112- top = objectOffset . top ;
113- break ;
114- case 'e' :
115- left = objectOffset . left + objectWidth ;
116- top = objectOffset . top + objectHeight / 2 ;
117- break ;
118- case 's' :
119- left = objectOffset . left + objectWidth / 2 ;
120- top = objectOffset . top + objectHeight ;
121- break ;
122- case 'w' :
123- left = objectOffset . left ;
124- top = objectOffset . top + objectHeight / 2 ;
125- break ;
126- case 'nw' :
127- left = objectOffset . left ;
128- top = objectOffset . top ;
129- break ;
130- case 'ne' :
131- left = objectOffset . left + objectWidth ;
132- top = objectOffset . top ;
133- break ;
134- case 'sw' :
135- left = objectOffset . left ;
136- top = objectOffset . top + objectHeight ;
137- break ;
138- case 'se' :
139- left = objectOffset . left + objectWidth ;
140- top = objectOffset . top + objectHeight ;
141- break ;
110+ case 'n' :
111+ left = objectOffset . left + objectWidth / 2 ;
112+ top = objectOffset . top ;
113+ break ;
114+ case 'e' :
115+ left = objectOffset . left + objectWidth ;
116+ top = objectOffset . top + objectHeight / 2 ;
117+ break ;
118+ case 's' :
119+ left = objectOffset . left + objectWidth / 2 ;
120+ top = objectOffset . top + objectHeight ;
121+ break ;
122+ case 'w' :
123+ left = objectOffset . left ;
124+ top = objectOffset . top + objectHeight / 2 ;
125+ break ;
126+ case 'nw' :
127+ left = objectOffset . left ;
128+ top = objectOffset . top ;
129+ break ;
130+ case 'ne' :
131+ left = objectOffset . left + objectWidth ;
132+ top = objectOffset . top ;
133+ break ;
134+ case 'sw' :
135+ left = objectOffset . left ;
136+ top = objectOffset . top + objectHeight ;
137+ break ;
138+ case 'se' :
139+ left = objectOffset . left + objectWidth ;
140+ top = objectOffset . top + objectHeight ;
141+ break ;
142142 }
143143
144144 return {
0 commit comments