changeset 1848:fde242bdd9ce beta

changelog: make graph center be slighly inside vertical commit space; center being in top corner looks confusing
author Aras Pranckevicius <aras@unity3d.com>
date Thu, 05 Jan 2012 20:21:32 +0200
parents aa4423c82c23
children 162300a90342
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	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();