From c701f01f0267d6ed3a1c2a22d4878696450611e5 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Thu, 2 Apr 2015 14:30:31 +0200 Subject: [PATCH] Fine-tuned window size --- src/elogd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index ca2770e0..d4c96775 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -10254,16 +10254,16 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL rsprintf("{\n"); rsprintf(" p = $id('TextParent');\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"); - rsprintf(" height = document.body.offsetHeight - t - 135 - 50 - 20;\n"); + rsprintf(" if (!!document.documentMode) // IE\n"); + rsprintf(" height = window.innerHeight - t - 210;\n"); + rsprintf(" else\n"); + rsprintf(" height = window.innerHeight - t - 205;\n"); rsprintf(" if (height < 300)\n"); rsprintf(" height = 300;\n"); rsprintf(" width = window.innerWidth;\n"); rsprintf(" if (width < 300)\n"); rsprintf(" width = 300;\n"); - rsprintf(" width = width - 6;\n"); + rsprintf(" width = width - 8;\n"); rsprintf(" if (typeof(CKEDITOR) != 'undefined')\n"); rsprintf(" CKEDITOR.instances.Text.resize(width, height);\n"); rsprintf(" else {\n");