Mercurial > kallithea
changeset 1852:9b9e056c177c beta
changelog: center graph points vertically, now that each row is same size
author | Aras Pranckevicius <aras@unity3d.com> |
---|---|
date | Fri, 06 Jan 2012 19:13:06 +0200 |
parents | 61f723ae8722 |
children | 8fe1a141de02 |
files | rhodecode/public/js/graph.js |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/public/js/graph.js Fri Jan 06 08:01:09 2012 +0200 +++ b/rhodecode/public/js/graph.js Fri Jan 06 19:13:06 2012 +0200 @@ -100,7 +100,7 @@ this.setColor(color, 0.0, 0.65); - y = row.offsetTop-rela.offsetTop+20; + y = row.offsetTop-rela.offsetTop+row.offsetHeight/2; x = pad-((this.cell[0] + this.box_size * start - 1) + this.bg_height-2); this.ctx.lineWidth=this.line_width; @@ -118,7 +118,7 @@ color = node[1] radius = this.dot_radius; - y = row.offsetTop-rela.offsetTop+20; + y = row.offsetTop-rela.offsetTop+row.offsetHeight/2; x = pad-(Math.round(this.cell[0] * scale/2 * column + radius) + 15 - (column*4)); this.ctx.beginPath();