From 4375f84f8faed60d38f16452a94844ea59c7cde0 Mon Sep 17 00:00:00 2001 From: "olau@iola.dk" Date: Fri, 7 Dec 2007 15:02:06 +0000 Subject: [PATCH] Removed 1/2 linewidth hack, it is a bad idea for the outline, fixes issue 8 git-svn-id: https://flot.googlecode.com/svn/trunk@27 1e0a6537-2640-0410-bfb7-f154510ff394 --- TODO | 1 - jquery.flot.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/TODO b/TODO index 81f8eb9..0d429bf 100644 --- a/TODO +++ b/TODO @@ -9,7 +9,6 @@ handling time data grid configuration - how ticks look like - - (handling of 1/2 linewidth hack in grid?) selection - user should be able to cancel selection with escape diff --git a/jquery.flot.js b/jquery.flot.js index 9a60153..571ff49 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -434,7 +434,7 @@ ctx.lineWidth = 2; ctx.strokeStyle = options.grid.color; ctx.lineJoin = "round"; - ctx.strokeRect(ctx.lineWidth/2, ctx.lineWidth/2, plotWidth, plotHeight); + ctx.strokeRect(0, 0, plotWidth, plotHeight); ctx.restore(); }