mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-14 20:33:48 +00:00
Made drop area smaller and resize text box correctly
This commit is contained in:
parent
26519b5859
commit
41a25d3226
30
src/elogd.c
30
src/elogd.c
@ -10237,12 +10237,17 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
rsprintf(" while (p = p.offsetParent)\n");
|
rsprintf(" while (p = p.offsetParent)\n");
|
||||||
rsprintf(" t += p.offsetTop;\n");
|
rsprintf(" t += p.offsetTop;\n");
|
||||||
rsprintf(" if (window.innerHeight) // netscape\n");
|
rsprintf(" if (window.innerHeight) // netscape\n");
|
||||||
rsprintf(" height = window.innerHeight - t - 135;\n");
|
rsprintf(" height = window.innerHeight - t - 135 - 50 - 30;\n");
|
||||||
rsprintf(" else // IE\n");
|
rsprintf(" else // IE\n");
|
||||||
rsprintf(" height = document.body.offsetHeight - t - 135;\n");
|
rsprintf(" height = document.body.offsetHeight - t - 135 - 50 - 30;\n");
|
||||||
rsprintf(" if (height < 300)\n");
|
rsprintf(" if (height < 300)\n");
|
||||||
rsprintf(" height = 300;\n");
|
rsprintf(" height = 300;\n");
|
||||||
rsprintf(" document.form1.Text.style.height = height;\n");
|
rsprintf(" document.form1.Text.style.height = height+\"px\";\n");
|
||||||
|
rsprintf(" width = window.innerWidth;\n");
|
||||||
|
rsprintf(" if (width < 300)\n");
|
||||||
|
rsprintf(" width = 300;\n");
|
||||||
|
rsprintf(" width = width - 20;");
|
||||||
|
rsprintf(" document.form1.Text.style.width = width+\"px\";\n");
|
||||||
rsprintf("}\n\n");
|
rsprintf("}\n\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -11213,14 +11218,9 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
rsprintf("</td></tr>\n");
|
rsprintf("</td></tr>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* main box for text box and icons */
|
|
||||||
rsprintf("<tr><td width=\"100%%\" colspan=2 class=\"attribvalue\">\n");
|
|
||||||
if (enc_selected == 0)
|
|
||||||
rsprintf("<table width=\"100%%\" border=\"0\"><tr>\n");
|
|
||||||
|
|
||||||
if (enc_selected == 0 && show_smileys) {
|
if (enc_selected == 0 && show_smileys) {
|
||||||
|
|
||||||
rsprintf("<td class=\"menuframe\">\n");
|
rsprintf("<tr><td colspan=2 class=\"menuframe\">\n");
|
||||||
rsicon("smile", loc("smiling"), ":)");
|
rsicon("smile", loc("smiling"), ":)");
|
||||||
rsprintf("<br />\n");
|
rsprintf("<br />\n");
|
||||||
rsicon("happy", loc("happy"), ":))");
|
rsicon("happy", loc("happy"), ":))");
|
||||||
@ -11247,11 +11247,10 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
rsprintf("<br />\n");
|
rsprintf("<br />\n");
|
||||||
rsicon("yawn", loc("yawn"), ":O");
|
rsicon("yawn", loc("yawn"), ":O");
|
||||||
|
|
||||||
rsprintf("</td>\n");
|
rsprintf("</td></tr>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (enc_selected == 0 && !fixed_text)
|
rsprintf("<tr><td colspan=2 width=\"100%%\" class=\"attribvalue\" id=\"TextParent\">\n");
|
||||||
rsprintf("<td width=\"100%%\" class=\"attribvalue\">\n");
|
|
||||||
|
|
||||||
/* set textarea width */
|
/* set textarea width */
|
||||||
width = 112;
|
width = 112;
|
||||||
@ -11691,9 +11690,6 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
|
|
||||||
rsprintf("</tr>\n");
|
rsprintf("</tr>\n");
|
||||||
|
|
||||||
if (enc_selected == 0)
|
|
||||||
rsprintf("</table></td></tr>\n");
|
|
||||||
|
|
||||||
for (i = 0; i < MAX_ATTACHMENTS; i++)
|
for (i = 0; i < MAX_ATTACHMENTS; i++)
|
||||||
if (!att[i][0]) {
|
if (!att[i][0]) {
|
||||||
/* put first free attachment for show_uploader_finished() */
|
/* put first free attachment for show_uploader_finished() */
|
||||||
@ -11914,8 +11910,8 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
// print the holder for dropping attachments
|
// print the holder for dropping attachments
|
||||||
rsprintf("<tr>\n");
|
rsprintf("<tr>\n");
|
||||||
rsprintf("<td style=\"background: white;\" colspan=2>\n");
|
rsprintf("<td style=\"background: white;\" colspan=2>\n");
|
||||||
rsprintf("<div id=\"holder\" style=\"background: white; border: 10px dashed #ccc; min-height: 200px; margin: 10px\" >");
|
rsprintf("<div id=\"holder\" style=\"background: white; border: 6px dashed #ccc; min-height: 50px; margin: 10px\" >");
|
||||||
rsprintf("<p class=\"info\" style=\"color: #999; font-size: 2em; text-align: center; margin-top: 40px;\">%s</p></div>", loc("Drop attachments here..."));
|
rsprintf("<p class=\"info\" style=\"color: #999; font-size: 2em; text-align: center; margin-top: 20px;\">%s</p></div>", loc("Drop attachments here..."));
|
||||||
rsprintf("</td></tr>");
|
rsprintf("</td></tr>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user