Craga89/qTip2 — Issue #272: Tooltip positions "incorrect" on inline element triggers that contain images
Author: darkspotinthecorner
Created: 2011-11-08 21:07:02+00:00
State: open

Hi there,

this may be a bit esoterical, but I was forwarded an issue with qTip when it is applied to inline elements that contain elements that exceed the "normal" bounding box of the inline element.

I have created a jsfiddle here: http://jsfiddle.net/NdPHP/

As you can see, the first tooltip trigger is a element that contains an image that is higher than the . So the tooltip is attached at the theoretical height of the inline element. However the contained image cascades the event to the and therefore triggers the qTip. This way you get a flickering of the tooltip when hovering over it.

Maybe there is a way to calculate the effective bounding box of all elements included in the tooltip trigger.

/cheers :-)