Mercurial > kallithea
changeset 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 | 713315371e03 |
children | 833f9dec0a06 |
files | rhodecode/public/css/style.css rhodecode/public/js/graph.js |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/public/css/style.css Fri Nov 04 21:27:53 2011 +0200 +++ b/rhodecode/public/css/style.css Sat Nov 05 01:57:51 2011 +0200 @@ -1903,7 +1903,7 @@ #graph_nodes { float: left; margin-right: -6px; - margin-top: -4px; + margin-top: 0px; } #graph_content {
--- 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();