fix non-fo y position as before

This commit is contained in:
whyzdev 2016-12-01 20:09:57 -05:00
parent 1e41cea107
commit 1e27238083
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ var _drawTextCandidateFunc = (function() {
var byText = function(content, g, x, y, width, height) {
var center = x + width / 2;
g.append('text')
.attr('x', center).attr('y', y + y / 2 + 5)
.attr('x', center).attr('y', y + height / 2 + 5)
.attr('class', 'actor').style('text-anchor', 'middle')
.text(content);
};