diff --git a/src/elogd.c b/src/elogd.c index e78bf596..d7c0e0f1 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -10234,9 +10234,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL rsprintf("function resize_textarea()\n"); rsprintf("{\n"); rsprintf(" p = $id('TextParent');\n"); - rsprintf(" t = p.offsetTop;\n"); - rsprintf(" while (p = p.offsetParent)\n"); - rsprintf(" t += p.offsetTop;\n"); + rsprintf(" t = p.getBoundingClientRect().top;\n"); rsprintf(" if (window.innerHeight) // netscape\n"); rsprintf(" height = window.innerHeight - t - 135 - 50 - 20;\n"); rsprintf(" else // IE\n"); @@ -11243,6 +11241,14 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL rsprintf("\n"); } + if (getcfg(lbs->name, "Message comment", comment, sizeof(comment)) && !message_id) { + rsprintf("