if (gravity.length == 2) {
if (gravity.charAt(1) == 'w') {
- tp.left = pos.left + pos.width / 2 - 15;
+ if ( this.options.center ) {
+ tp.left = pos.left + pos.width / 2 - 15;
+ } else {
+ tp.left = pos.left;
+ }
} else {
- tp.left = pos.left + pos.width / 2 - actualWidth + 15;
+ if ( this.options.center ) {
+ tp.left = pos.left + pos.width / 2 - actualWidth + 15;
+ } else {
+ tp.left = pos.left + pos.width;
+ }
}
}
fade: true,
fallback: '',
gravity: 'n',
+ center: true,
html: false,
live: false,
offset: 0,