Mercurial > kallithea
diff rhodecode/public/js/graph.js @ 1655:a0287ee1fd87 beta
fixes for DAG renderer on chrome
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 05 Nov 2011 01:57:51 +0200 |
parents | 31ed19b1fdb9 |
children | fde242bdd9ce |
line wrap: on
line diff
--- a/rhodecode/public/js/graph.js Fri Nov 04 21:27:53 2011 +0200 +++ b/rhodecode/public/js/graph.js Sat Nov 05 01:57:51 2011 +0200 @@ -100,7 +100,7 @@ this.setColor(color, 0.0, 0.65); - y = row.offsetTop-rela.offsetTop+4; + y = row.offsetTop-rela.offsetTop; x = pad-((this.cell[0] + this.box_size * start - 1) + this.bg_height-2); this.ctx.lineWidth=this.line_width; @@ -108,6 +108,7 @@ this.ctx.moveTo(x, y); y += row.offsetHeight; + x = pad-((1 + this.box_size * end) + this.bg_height-2); this.ctx.lineTo(x,y+extra,3); this.ctx.stroke(); @@ -117,7 +118,7 @@ color = node[1] radius = this.dot_radius; - y = row.offsetTop-rela.offsetTop+4; + y = row.offsetTop-rela.offsetTop; x = pad-(Math.round(this.cell[0] * scale/2 * column + radius) + 15 - (column*4)); this.ctx.beginPath();