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:
commit
ee57908b49
1 changed files with 4 additions and 1 deletions
|
@ -1604,7 +1604,10 @@ VT100.prototype.updateWidth = function() {
|
||||||
this.terminalWidth = Math.floor(this.console[this.currentScreen].offsetWidth/this.cursorWidth*this.scale);
|
this.terminalWidth = Math.floor(this.console[this.currentScreen].offsetWidth/this.cursorWidth*this.scale);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.terminalWidth = Math.floor(this.console[this.currentScreen].offsetWidth/this.cursorWidth*this.scale);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.terminalWidth;
|
return this.terminalWidth;
|
||||||
|
|
Loading…
Reference in a new issue