Monotone-Parent: eeaa9b56be0dd1eff991c0e1fe8ba2884de77fe0

Monotone-Revision: 77fad29da0fd5876e8ecb81ce5560d9ffd400f2d

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-10-18T21:40:04
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-10-18 21:40:04 +00:00
parent 6d93652dea
commit 17f82196c8

View File

@@ -289,7 +289,6 @@ function onSelectAllAttachments() {
function onWindowResize(event) {
var textarea = document.pageform.text;
var windowheight = (typeof self.innerHeight == "number" ? self.innerHeight : document.body.clientHeight);
var rowheight = (Element.getHeight(textarea) / textarea.rows);
var headerarea = $("headerArea");
@@ -299,30 +298,31 @@ function onWindowResize(event) {
var textareaoffset = textarea.offsetTop;
// Resize the textarea (message content)
textarea.rows = Math.round((windowheight - textareaoffset) / rowheight);
textarea.rows = Math.round((window.height() - textareaoffset) / rowheight);
var attachmentsarea = $("attachmentsArea");
var attachmentswidth = 0;
if (attachmentsarea.style.display)
attachmentswidth = attachmentsarea.getWidth();
var subjectfield = $(document).getElementsByClassName('headerField', $('subjectRow'))[0];
var subjectinput = $(document).getElementsByClassName('textField', $('subjectRow'))[0];
var subjectfield = $(document).getElementsByClassName('headerField',
$('subjectRow'))[0];
var subjectinput = $(document).getElementsByClassName('textField',
$('subjectRow'))[0];
// Resize subject field
subjectinput.setStyle({ width: (window.width()
- $(subjectfield).getWidth()
- attachmentswidth
- 4 - 30
) + 'px' });
- 4 - 30) + 'px' });
// Resize address fields
var addresslist = $('addressList');
var firstselect = document.getElementsByClassName('headerField', addresslist)[0];
var inputwidth = $(this).width - $(firstselect).getWidth() - attachmentswidth - 24 - 30;
var inputwidth = ($(this).width() - $(firstselect).getWidth()
- attachmentswidth - 24 - 30);
var addresses = document.getElementsByClassName('textField', addresslist);
for (var i = 0; i < addresses.length; i++) {
for (var i = 0; i < addresses.length; i++)
addresses[i].setStyle({ width: inputwidth + 'px' });
}
}
function onMailEditorClose(event) {