From 172d487055a7cdbfe61619f344eb016c1570abf5 Mon Sep 17 00:00:00 2001 From: Thibaut Tiberghien Date: Thu, 16 Feb 2017 11:59:11 +0800 Subject: [PATCH] Fix display of unicode characters (#1376) * Fix display of unicode characters * Fix unicode display issues and CJK cursor --- lib/components/term.js | 3 +++ lib/hterm.js | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/components/term.js b/lib/components/term.js index b9b91f61..2fc25fe2 100644 --- a/lib/components/term.js +++ b/lib/components/term.js @@ -250,6 +250,9 @@ export default class Term extends Component { .cursor-node[focus="false"] { border-width: 1px !important; } + x-row { + line-height: 1.2em; + } ${hyperCaret} ${scrollBarCss} ${css} diff --git a/lib/hterm.js b/lib/hterm.js index 66480135..e80f45a8 100644 --- a/lib/hterm.js +++ b/lib/hterm.js @@ -148,7 +148,6 @@ hterm.Terminal.prototype.setFontSize = function (px) { .unicode-node { display: inline-block; vertical-align: top; - width: ${this.scrollPort_.characterSize.width}px; } `; };