Permalink
Browse files

improve padding for labels with angle > PI/2

  • Loading branch information...
1 parent 0fb1695 commit 4006d3f22e8786ddeca48c6d2d6bc7ebd3cfaa7c @sievlev sievlev committed Dec 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 jquery.flot.js
View
@@ -1734,7 +1734,7 @@
x = plotOffset.left + axis.p2c(tick.v);
y = box.top + 2 * box.padding;
if(angle > Math.PI/2) {
- x -= line.width;
+ x -= line.width - 2* box.padding;
y += line.height - 2* box.padding;
angle += Math.PI;
}

0 comments on commit 4006d3f

Please sign in to comment.