From 568de40c4805b90907d262e049b0fb6496655d2a Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Thu, 5 Jul 2007 10:41:54 +0000 Subject: [PATCH] Make resize also work under IE SVN revision: 1878 --- src/elogd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/elogd.c b/src/elogd.c index f8087cb2..5433d8a2 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -9399,7 +9399,10 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL rsprintf(" t = p.offsetTop;\n"); rsprintf(" while (p = p.offsetParent)\n"); rsprintf(" t += p.offsetTop;\n"); - rsprintf(" height = window.innerHeight - t - 135;\n"); + rsprintf(" if (window.innerHeight) // netscape\n"); + rsprintf(" height = window.innerHeight - t - 135;\n"); + rsprintf(" else // IE\n"); + rsprintf(" height = document.body.offsetHeight - t - 135;\n"); rsprintf(" if (height < 300)\n"); rsprintf(" height = 300;\n"); rsprintf(" document.form1.Text.style.height = height;\n");