Make resize also work under IE

SVN revision: 1878
This commit is contained in:
Stefan Ritt 2007-07-05 10:41:54 +00:00
parent b0ff642d03
commit 568de40c48

View File

@ -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");