From 490cfa0344a70be480c0cbf9ae679ec7356d4d80 Mon Sep 17 00:00:00 2001 From: Tom Vijlbrief Date: Thu, 25 Feb 2016 14:47:16 +0100 Subject: [PATCH] adjust scale on IE --- shellinabox/vt100.jspp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shellinabox/vt100.jspp b/shellinabox/vt100.jspp index c875592..dd92fa6 100755 --- a/shellinabox/vt100.jspp +++ b/shellinabox/vt100.jspp @@ -1604,7 +1604,10 @@ VT100.prototype.updateWidth = function() { this.terminalWidth = Math.floor(this.console[this.currentScreen].offsetWidth/this.cursorWidth*this.scale); } } 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;