mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fine-tuned window size
This commit is contained in:
parent
a4456af3e6
commit
c701f01f02
10
src/elogd.c
10
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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user