# HG changeset patch # User Aras Pranckevicius # Date 1325787692 -7200 # Node ID fde242bdd9ce9338539dae4f547d5ff97c258253 # Parent aa4423c82c23cb57df537007fd3546ecd18a704f changelog: make graph center be slighly inside vertical commit space; center being in top corner looks confusing diff -r aa4423c82c23 -r fde242bdd9ce rhodecode/public/js/graph.js --- a/rhodecode/public/js/graph.js Thu Jan 05 19:29:08 2012 +0200 +++ b/rhodecode/public/js/graph.js Thu Jan 05 20:21:32 2012 +0200 @@ -100,7 +100,7 @@ this.setColor(color, 0.0, 0.65); - y = row.offsetTop-rela.offsetTop; + y = row.offsetTop-rela.offsetTop+20; 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; + y = row.offsetTop-rela.offsetTop+20; x = pad-(Math.round(this.cell[0] * scale/2 * column + radius) + 15 - (column*4)); this.ctx.beginPath();