Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
Fix negative tip offset on 'center' positions. Fixes #556
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Jul 11, 2013
1 parent 7f57e37 commit 3e5d711
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tips/tips.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ $.extend(Tip.prototype, {
var self = this,
elements = this.qtip.elements,
tip = this.element,
userOffset = Math.max(0, this.options.offset),
userOffset = this.options.offset,
isWidget = this.qtip.tooltip.hasClass('ui-widget'),
position = { },
precedance, size, corners;
Expand Down Expand Up @@ -495,7 +495,7 @@ $.extend(Tip.prototype, {
// Readjust offset object to make it left/top
if(offset.right !== undefined) { offset.left = -offset.right; }
if(offset.bottom !== undefined) { offset.top = -offset.bottom; }
offset.user = Math.max(0, this.offset);
offset.user = this.offset;

// Viewport "shift" specific adjustments
if(shift.left = (horizontal === SHIFT && !!adjust.left)) {
Expand Down

0 comments on commit 3e5d711

Please sign in to comment.