Also set font size

This commit is contained in:
Daniel Imms
2019-02-11 06:07:31 -08:00
parent 78426d8a12
commit c934200c86
+1
View File
@@ -204,6 +204,7 @@ export class CompositionHelper {
this._compositionView.style.height = cellHeight + 'px';
this._compositionView.style.lineHeight = cellHeight + 'px';
this._compositionView.style.fontFamily = this._terminal.options.fontFamily;
this._compositionView.style.fontSize = this._terminal.options.fontSize + 'px';
// Sync the textarea to the exact position of the composition view so the IME knows where the
// text is.
const compositionViewBounds = this._compositionView.getBoundingClientRect();