Qtip2 mouse positioning bug with jquery > 1.9 when use negative margin

294
November 22, 2016, at 12:49 PM

I use qTip2 for tooltip in my web application and since jquery 1.9, the tooltip are no longer placed in the same place.

With jquery < 1.9 :

With jquery >= 1.9 :

I have see that jQuery in both version does take negative margins into account; It seems jQuery 1.8.3 was counting body offset incorrectly, in jQuery 1.9.x it's fixed

I have notice that the bug appears when we use negative margin and when the number of rows of my table doesn't exceed viewport height. I use negative margin to set footer on the bottom of the page.

You can see a simplified jsfiddle example :

Tooltip isn't good placed (number of rows doesn't exceed viewport height) : http://jsfiddle.net/fDavN/12545/

Tooltip is good placed (number of rows exceed viewport height) : http://jsfiddle.net/fDavN/12546/

With jQuery version < 1.9, its works with the two case :

http://jsfiddle.net/Francks11/fDavN/12558/

http://jsfiddle.net/Francks11/fDavN/12559/

Can you help me please?

Thanks

READ ALSO
Javascript Div Scroll - Some Issues

Javascript Div Scroll - Some Issues

I copied this from another post, not blindly, I can see what it does but I can't think of a way to fix the problem. I am not really proficient in JavaScript but I can read this snippet.

343
Intel XDK: set href in sprite button

Intel XDK: set href in sprite button

I'm developing an application in Intel XDK and want to set the href of a sprite button via javascript. .

279
ccavenue IFRAME integration using php

ccavenue IFRAME integration using php

I am trying to integrate ccavenue IFRAME payment gateway into my wordpress website. The ccavenue integration is working well except the IFRAME doesnt happen.

468
how to go to specific slide on leftChevron click in bootstrap carousel instead of going to immediate previous slide?

how to go to specific slide on leftChevron click in bootstrap carousel instead of going to immediate previous slide?

I am using Carousel control. [nnn]Now I am also maintaining a java script collection and array like below:[nnn]Now this is how the carousel is rendered in UI:.

289