Skip to content

Commit c33814a

Browse files
authored
Merge pull request #680 from Tyriar/set_row_height_explicitly
Set row height when char size is changed
2 parents a889fef + 0950369 commit c33814a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/xterm.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,8 @@ Terminal.loadAddon = function(addon, callback) {
779779
Terminal.prototype.updateCharSizeStyles = function() {
780780
this.charSizeStyleElement.textContent =
781781
`.xterm-wide-char{width:${this.charMeasure.width * 2}px;}` +
782-
`.xterm-normal-char{width:${this.charMeasure.width}px;}`;
782+
`.xterm-normal-char{width:${this.charMeasure.width}px;}` +
783+
`.xterm-rows > div{height:${this.charMeasure.height}px;}`;
783784
}
784785

785786
/**

0 commit comments

Comments
 (0)