Open nturcot opened 10 years ago
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.
Is there a pull request for this yet?
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.