]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Set row height when char size is changed
authorDaniel Imms <daimms@microsoft.com>
Tue, 6 Jun 2017 21:31:57 +0000 (14:31 -0700)
committerDaniel Imms <daimms@microsoft.com>
Tue, 6 Jun 2017 21:31:57 +0000 (14:31 -0700)
When zoomed in line-height and actual rendered row height differs. This
can be seen in the viewport being too large when zoomed in right now
but also has additional impacts in the new selection model #207

src/xterm.js

index f92a25f7b64b7751bc25d94f1b9f63323ce406df..cd9f127e53406eaf1bf5b13e223f731ece4ce6be 100644 (file)
@@ -763,7 +763,8 @@ Terminal.loadAddon = function(addon, callback) {
 Terminal.prototype.updateCharSizeCSS = function() {
   this.charSizeStyleElement.textContent =
       `.xterm-wide-char{width:${this.charMeasure.width * 2}px;}` +
-      `.xterm-normal-char{width:${this.charMeasure.width}px;}`
+      `.xterm-normal-char{width:${this.charMeasure.width}px;}` +
+      `.xterm-rows > div{height:${this.charMeasure.height}px;}`;
 }
 
 /**