From 53891db655fe771feb083757ea2870e220d40d2c Mon Sep 17 00:00:00 2001 From: nuintun Date: Thu, 3 Dec 2015 18:45:13 +0800 Subject: [PATCH] update files --- static/js/components/app-main/canvas-xterm.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/js/components/app-main/canvas-xterm.js b/static/js/components/app-main/canvas-xterm.js index f77518f..06a969f 100644 --- a/static/js/components/app-main/canvas-xterm.js +++ b/static/js/components/app-main/canvas-xterm.js @@ -30,7 +30,6 @@ function CanvasXTerm(font){ this.canvas = document.createElement('canvas'); this.canvas.style.backgroundColor = 'transparent'; this.brush = this.canvas.getContext('2d'); - this.baseY = this.font.lineHeight / 2; } // CanvasXTerm prototype @@ -67,7 +66,7 @@ CanvasXTerm.prototype = { for (i = 0; i < rows; i++) { x = 0; - y = i * this.font.lineHeight + this.baseY; + y = (i + 0.5) * this.font.lineHeight; text = ''; for (j = 0; j < cols; j++) {