Skip to content

Commit

Permalink
emscripten: fix CSS in termlib_min.js which caused some JS console spam
Browse files Browse the repository at this point in the history
Although td.style height/minHeight/maxHeight apparently aren't supported in
HTML5 anyway
  • Loading branch information
rversteegen committed Jun 25, 2023
1 parent d859aad commit 936c086
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/termlib_min.js
Expand Up @@ -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;
Expand Down Expand Up @@ -2760,4 +2760,4 @@ var TermGlobals = Terminal.prototype.globals;
var termKey = Terminal.prototype.globals.termKey;
var termDomKeyRef = Terminal.prototype.globals.termDomKeyRef;

// eof
// eof

0 comments on commit 936c086

Please sign in to comment.