Monotone-Parent: 2946be96e24ef28355163488376def0341ef650f

Monotone-Revision: 41b11d3b1b18c4d1c7da8ba97062c553d70d8596

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2008-08-26T17:16:16
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2008-08-26 17:16:16 +00:00
parent 335d43c92c
commit 674e436631
4 changed files with 39 additions and 17 deletions

View File

@@ -571,8 +571,8 @@ function onWindowResize(event) {
// headerarea)[0];
// $("attachments").setStyle({ height: (headerarea.getHeight() - fromfield.getHeight() - 10) + 'px' });
}
var subjectfield = headerarea.select("div#subjectRow span.headerField").first();
var subjectinput = headerarea.select("div#subjectRow input.textField").first();
var subjectfield = headerarea.down("div#subjectRow span.headerField");
var subjectinput = headerarea.down("div#subjectRow input.textField");
// Resize subject field
subjectinput.setStyle({ width: (window.width()
@@ -585,12 +585,10 @@ function onWindowResize(event) {
addresslist.setStyle({ width: ($(this).width() - attachmentswidth - 10) + 'px' });
// Set textarea position
textarea.setStyle({ 'top': (headerarea.getHeight() + headerarea.offsetTop) + 'px' });
var textareaoffset = textarea.offsetTop;
textarea.setStyle({ 'top': headerarea.select("hr").first().offsetTop + 'px' });
// Resize the textarea (message content)
textarea.rows = Math.round((window.height() - textareaoffset) / rowheight);
textarea.rows = Math.round((window.height() - textarea.offsetTop) / rowheight);
}
function onMailEditorClose(event) {