Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Drawing borders on all sides of floating bars that aren't anchored off the x or y axis. #11

Open
wants to merge 1 commit into from

1 participant

Commits on Jun 16, 2011
  1. @slieschke
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 6 deletions.
  1. +6 −6 jquery.flot.js
View
12 jquery.flot.js
@@ -2075,12 +2075,12 @@
// instead of from the bottom so it appears to be
// horizontal rather than vertical
if (horizontal) {
- drawBottom = drawRight = drawTop = true;
- drawLeft = false;
left = b;
right = x;
top = y + barLeft;
bottom = y + barRight;
+ drawBottom = drawRight = drawTop = true;
+ drawLeft = (left != 0);
// account for negative bars
if (right < left) {
@@ -2088,16 +2088,16 @@
right = left;
left = tmp;
drawLeft = true;
- drawRight = false;
+ drawRight = (right != 0);
}
}
else {
- drawLeft = drawRight = drawTop = true;
- drawBottom = false;
left = x + barLeft;
right = x + barRight;
bottom = b;
top = y;
+ drawLeft = drawRight = drawTop = true;
+ drawBottom = (bottom != 0);
// account for negative bars
if (top < bottom) {
@@ -2105,7 +2105,7 @@
top = bottom;
bottom = tmp;
drawBottom = true;
- drawTop = false;
+ drawTop = (top != 0);
}
}
Something went wrong with that request. Please try again.