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
pull/1/head
olau@iola.dk 15 years ago
parent ccfb0b496b
commit 23316cfa63

@ -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;

Loading…
Cancel
Save