krzysu / flot.tooltip

tooltip plugin for wonderful Flot plotting library
https://github.com/krzysu/flot.tooltip
187 stars 153 forks source link

jQueryUI breaks tooltip positioning: runs out of window #113

Closed kenirwin closed 9 years ago

kenirwin commented 9 years ago

The tooltip plugin has some positioning magic that keeps the tooltip visible when the related point is near the edge of a window. I discovered today that the inclusion of jQueryUI on a page breaks that functionality and the tooltip can run off the side of the page.

Example: http://www6.wittenberg.edu/lib/ken/test/bad.html flot-tooltip-offpage

Compare to a page with no jQueryUI: http://www6.wittenberg.edu/lib/ken/test/good.html flot-tooltip-onpage

I don't understand these positioning mysteries enough to fix them, but I wonder if it's something as simple (?) as conflicting variable names or scopes.

kenirwin commented 9 years ago

It turns out that this is not a flot.tooltip bug -- the problem was fixed by updating from jQueryUI 1.8.x to 1.11.x