gwatts / jquery.sparkline

A plugin for the jQuery javascript library to generate small sparkline charts directly in the browser
http://omnipotent.net/jquery.sparkline/
1.24k stars 278 forks source link

Fix tooltip width and position when content change #169

Open fdaugan opened 8 years ago

fdaugan commented 8 years ago

When the tooltip is on the border right for sample, and the mouse pointer is moved over another region implying another wider content, a scollbar may appear. This is due to the computation of tooltips before the content update.

This PR ensures the size is computed after the content is updated.