Mercurial > kallithea
comparison pylons_app/public/js/graph.js @ 289:1dbe02063123
graph fixes.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 23 Jun 2010 00:31:00 +0200 |
parents | ab1afe7444f3 |
children | 68dc70295a76 |
comparison
equal
deleted
inserted
replaced
288:ab1afe7444f3 | 289:1dbe02063123 |
---|---|
103 y = row.offsetTop-rela.offsetTop+4; | 103 y = row.offsetTop-rela.offsetTop+4; |
104 x = pad-((this.cell[0] + this.box_size * start - 1) + this.bg_height-2); | 104 x = pad-((this.cell[0] + this.box_size * start - 1) + this.bg_height-2); |
105 this.ctx.beginPath(); | 105 this.ctx.beginPath(); |
106 this.ctx.moveTo(x, y); | 106 this.ctx.moveTo(x, y); |
107 | 107 |
108 y += row.clientHeight; | 108 //i don't know why it's +1 just fixes some drawing graph. |
109 y += row.clientHeight+1; | |
109 x = pad-((1 + this.box_size * end) + this.bg_height-2); | 110 x = pad-((1 + this.box_size * end) + this.bg_height-2); |
110 this.ctx.lineTo(x,y+extra); | 111 this.ctx.lineTo(x,y+extra); |
111 this.ctx.stroke(); | 112 this.ctx.stroke(); |
112 } | 113 } |
113 | 114 |