Skip to content

Commit

Permalink
fixes label backgrounds in rings and box
Browse files Browse the repository at this point in the history
  • Loading branch information
davelandry committed May 31, 2016
1 parent a1e6f4e commit dd8cd6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/viz/helpers/shapes/labels.js
Expand Up @@ -330,7 +330,7 @@ module.exports = function( vars , group ) {
"height": box.height,
"width": box.width,
"x": box.x,
"y": box.y
"y": box.y > 0 ? box.y : -box.height/2
};
bounds.width += vars.labels.padding*scale[0];
bounds.height += vars.labels.padding*scale[0];
Expand All @@ -342,7 +342,7 @@ module.exports = function( vars , group ) {
if (y.length > 1) {
y = y[y.length - 1];
y = y.substring(0, y.length - 1);
bounds.y += y;
bounds.y += parseFloat(y);
}

}
Expand Down

0 comments on commit dd8cd6c

Please sign in to comment.