diff --git a/flotr2.js b/flotr2.js index 8c5a43ed..d614243d 100644 --- a/flotr2.js +++ b/flotr2.js @@ -2281,8 +2281,10 @@ Text.prototype = { D.setStyles(div, { 'position' : 'absolute', 'top' : '-10000px' }); D.insert(div, '
' + text + '
'); D.insert(this.o.element, div); + var dim = D.size(div); + D.hide(div); - return D.size(div); + return dim; }, measureText : function (text, style) {