From 936c0863f4429d9df0690a7e7287aa7c1e7be2f5 Mon Sep 17 00:00:00 2001 From: Ralph Versteegen Date: Fri, 23 Jun 2023 22:00:56 +1200 Subject: [PATCH] emscripten: fix CSS in termlib_min.js which caused some JS console spam Although td.style height/minHeight/maxHeight apparently aren't supported in HTML5 anyway --- lib/termlib_min.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/termlib_min.js b/lib/termlib_min.js index 1a19d60601..cf6b27034f 100644 --- a/lib/termlib_min.js +++ b/lib/termlib_min.js @@ -1434,7 +1434,7 @@ _makeTerm: function(rebuild) { tr=document.createElement('tr'); td=document.createElement('td'); td.id=divPrefix+r; - td.style.height=td.style.minHeight=td.style.maxHeight=this.conf.rowHeight; + td.style.height=td.style.minHeight=td.style.maxHeight=this.conf.rowHeight+'px'; td.style.whiteSpace='nowrap'; td.className=this.conf.fontClass; td.innerHTML=rstr; @@ -2760,4 +2760,4 @@ var TermGlobals = Terminal.prototype.globals; var termKey = Terminal.prototype.globals.termKey; var termDomKeyRef = Terminal.prototype.globals.termDomKeyRef; -// eof \ No newline at end of file +// eof