Fine-tuned window size

This commit is contained in:
Stefan Ritt 2015-04-02 14:30:31 +02:00
parent a4456af3e6
commit c701f01f02

View File

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