Merge pull request #363 from tomtor/IE

adjust scale on IE

On IE 11 the computed width (nr of columns) is too large.
This commit is contained in:
Luka Krajger 2016-03-01 03:22:11 -05:00
commit ee57908b49

View file

@ -1604,6 +1604,9 @@ VT100.prototype.updateWidth = function() {
this.terminalWidth = Math.floor(this.console[this.currentScreen].offsetWidth/this.cursorWidth*this.scale);
}
} else {
if ("ActiveXObject" in window)
this.terminalWidth = Math.floor(this.console[this.currentScreen].offsetWidth/this.cursorWidth*this.scale*0.95);
else
this.terminalWidth = Math.floor(this.console[this.currentScreen].offsetWidth/this.cursorWidth*this.scale);
}