Commit 23316cfa authored by olau@iola.dk's avatar olau@iola.dk

Fix problem with unaligned ticks and hover/click events caused by

padding on the placeholder by hardcoding the placeholder padding to 0
(reported by adityadineshsaxena, Matt Sommer, Daniel Atos and some
other people, issue 301)


git-svn-id: https://flot.googlecode.com/svn/trunk@314 1e0a6537-2640-0410-bfb7-f154510ff394
parent ccfb0b49
......@@ -148,6 +148,10 @@ Bug fixes:
- Fix bug in picking items when transform/inverseTransform is in use
(reported by Ofri Raviv, and patches and analysis by Jan and Tom
Paton, issue 334 and 467).
- Fix problem with unaligned ticks and hover/click events caused by
padding on the placeholder by hardcoding the placeholder padding to
0 (reported by adityadineshsaxena, Matt Sommer, Daniel Atos and some
other people, issue 301).
Flot 0.6
......
......@@ -687,6 +687,7 @@
if (placeholder.css("position") == 'static')
placeholder.css("position", "relative"); // for positioning labels and overlay
placeholder.css({ padding: 0 });
if (canvasWidth <= 0 || canvasHeight <= 0)
throw "Invalid dimensions for plot, width = " + canvasWidth + ", height = " + canvasHeight;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment