From 8a336a1d4d75c4f6c803b3576657d251021feea7 Mon Sep 17 00:00:00 2001 From: BenRifkah Bergsten-Buret Date: Wed, 14 Aug 2013 12:04:43 -0700 Subject: [PATCH] hide dummy div after measuring for issue #236 --- flotr2.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {