Craga89/qTip2 — Issue #261: tip color not changing for certain positions.
Author: mightyenigma
Created: 2011-11-02 19:00:06+00:00
State: open

I have a tooltip with this position

position: {
my: "bottom center",
at: "top center",
viewport: $(window),
effect: false,
adjust: {
method: 'flip flip',
mouse: false
}
}

and the style.tip object is set to

tip: {
corner: true,
border: 1,
width: 16,
height: 16
},

And it does not update the tip's corner.y to be "top" when the user scrolls down past the target element.
This prevents it from properly updating the color (works okay if we put the tip on the left or right edge, though).

I fixed it by modifying update() to call
self.detectColours(corner);
instead of
self.detectColours();

and by changing the detectColors method declaration to
detectColours: function(corner)
instead of
detectColours: function()

and by modifying detectColors' corner assignment to be
corner = (!corner) ? self.corner : corner,
instead of
corner = self.corner

in the var declare/assign block at the begiining of the detectColours method.

hope this helps someone else.