wildanSawaludin / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

HTML5 measureText cross-browser inconsistency #736

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
measureText does not calculate the width of the labels properly, resulting in 
odd overlapping and clipping on the right-hand side under certain circumstances.

For example, the included flot multiple axes example.

I've attached a sample solution through the use of the DOM to measure, since it 
is more reliable.

I'll also make a pull request on github with this fix.

Cheers,

Jeff

Original issue reported on code.google.com by sanak...@gmail.com on 13 Aug 2012 at 11:27

Attachments: