From 3c1d04cbd10a23cb74aead2faec17ea70e565359 Mon Sep 17 00:00:00 2001 From: hizhengfu Date: Mon, 14 Jan 2013 16:10:32 +0800 Subject: [PATCH] Correction calculation error margin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Correction calculation error marginĀ  --- jquery.flot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.flot.js b/jquery.flot.js index c2d01f2..918352a 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -1142,10 +1142,10 @@ Licensed under the MIT license. for (var a in plotOffset) { if(typeof(options.grid.borderWidth) == "object") { - plotOffset[a] = showGrid ? options.grid.borderWidth[a] : 0; + plotOffset[a] += showGrid ? options.grid.borderWidth[a] : 0; } else { - plotOffset[a] = showGrid ? options.grid.borderWidth : 0; + plotOffset[a] += showGrid ? options.grid.borderWidth : 0; } }