jquery.sparkline icon indicating copy to clipboard operation
jquery.sparkline copied to clipboard

Tooltips on window right edge are partly not visible, and trigger horizontal scroll

Open nturcot opened this issue 11 years ago • 2 comments

When a sparkline is located close to the right edge of the window (or any scrollable element), any tooltip close to this edge is partly hidden and triggers the horizontal scrollbar.

Demo: http://jsfiddle.net/M7kXc/1/ - to reproduce, move your mouse over the graph from left to right. When approaching the right edge, the tooltip should stop moving, but too late: it is half hidden and scrollbar appeared. Reproduced on Firefox 28 and Chrome 35.

tooltipscroll

nturcot avatar Apr 11 '14 14:04 nturcot

I was able to fix the issue by changing width() to outerWidth() and height() to outerHeight() in the Tooltip's getSize() method. In v2.1.2, this is around line 870 of the unminified source.

timvasil avatar Jun 02 '14 23:06 timvasil

Is there a pull request for this yet?

thinkjson avatar Dec 01 '15 14:12 thinkjson