]> git.proxmox.com Git - mirror_xterm.js.git/blobdiff - dist/addons/fit/fit.js
Bump version to 2.5.0
[mirror_xterm.js.git] / dist / addons / fit / fit.js
index 11fc6eb79fbc6ec7853273596c64dae73e93188a..46b79e9b3be5443002f2a9597a26b152ae3432c1 100644 (file)
@@ -56,7 +56,7 @@
     subjectRow.innerHTML = 'W'; // Common character for measuring width, although on monospace
     characterWidth = subjectRow.getBoundingClientRect().width;
     subjectRow.style.display = ''; // Revert style before calculating height, since they differ.
-    characterHeight = parseInt(subjectRow.offsetHeight);
+    characterHeight = subjectRow.getBoundingClientRect().height;
     subjectRow.innerHTML = contentBuffer;
 
     rows = parseInt(availableHeight / characterHeight);