fix canvas bug

This commit is contained in:
lh_wang
2015-08-06 15:53:36 +08:00
parent 8b2486f7e7
commit d6a5d6cb9d
+3 -1
View File
@@ -8,6 +8,8 @@ define('home/router', function(require, exports, module) {
canvas.width = 45;
canvas.height = 220;
canvas.style.width = 45;
canvas.style.height = 220;
//line
ctx.beginPath();
@@ -31,7 +33,7 @@ define('home/router', function(require, exports, module) {
ctx.beginPath();
ctx.fillStyle = '#4C4C4C';
ctx.fillText(router[i].content, 2, 25 + 5 + i * 25);
ctx.fillText(router[i].content, 2, 25 + 3 + i * 25);
ctx.closePath();
ctx.fill();
}