Index: trunk/phase3/resources/jquery.tipsy/jquery.tipsy.js |
— | — | @@ -56,9 +56,17 @@ |
57 | 57 | |
58 | 58 | if (gravity.length == 2) { |
59 | 59 | if (gravity.charAt(1) == 'w') { |
60 | | - tp.left = pos.left + pos.width / 2 - 15; |
| 60 | + if ( this.options.center ) { |
| 61 | + tp.left = pos.left + pos.width / 2 - 15; |
| 62 | + } else { |
| 63 | + tp.left = pos.left; |
| 64 | + } |
61 | 65 | } else { |
62 | | - tp.left = pos.left + pos.width / 2 - actualWidth + 15; |
| 66 | + if ( this.options.center ) { |
| 67 | + tp.left = pos.left + pos.width / 2 - actualWidth + 15; |
| 68 | + } else { |
| 69 | + tp.left = pos.left + pos.width; |
| 70 | + } |
63 | 71 | } |
64 | 72 | } |
65 | 73 | |
— | — | @@ -171,6 +179,7 @@ |
172 | 180 | fade: true, |
173 | 181 | fallback: '', |
174 | 182 | gravity: 'n', |
| 183 | + center: true, |
175 | 184 | html: false, |
176 | 185 | live: false, |
177 | 186 | offset: 0, |