From f6f51448d59f4959e343e8339e21ddbb994d38a3 Mon Sep 17 00:00:00 2001 From: zodiac Date: Fri, 20 Mar 2009 06:39:50 +0000 Subject: [PATCH] IE has a slightly different box model than other browsers. Compensate for it. git-svn-id: https://shellinabox.googlecode.com/svn/trunk@82 0da03de8-d603-11dd-86c2-0f8696b7b6f9 --- shellinabox/vt100.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shellinabox/vt100.js b/shellinabox/vt100.js index 39f63a4..60a9d9f 100644 --- a/shellinabox/vt100.js +++ b/shellinabox/vt100.js @@ -990,8 +990,8 @@ VT100.prototype.putString = function(x, y, text, style) { // If we are in a non-empty line, take the cursor Y position from the // other elements in this line. If dealing with broken, non-proportional // fonts, this is likely to yield better results. - pixelY = span.offsetTop; - + pixelY = span.offsetTop + + span.offsetParent.offsetTop; s = this.getTextContent(span); var nxtIdx = idx - s.length; if (nxtIdx < 0) {