Mantis 2137: attachments resize

Monotone-Parent: d24da70dbbf478c3ed5fe3ac9825fa5a942f1441
Monotone-Revision: b9fd73f3b424b6987ed02034e0b3b5c7329ef75c

Monotone-Author: crobert@inverse.ca
Monotone-Date: 2009-07-31T19:08:15
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
C Robert
2009-07-31 19:08:15 +00:00
parent 4b9bddab18
commit e1515361d0
+7 -5
View File
@@ -714,10 +714,13 @@ function onWindowResize(event) {
var attachmentswidth = 0;
if (attachmentsarea.style.display) {
attachmentswidth = attachmentsarea.getWidth();
// Resize of attachment list is b0rken under IE7
// fromfield = $(document).getElementsByClassName('headerField',
// headerarea)[0];
// $("attachments").setStyle({ height: (headerarea.getHeight() - fromfield.getHeight() - 10) + 'px' });
fromfield = $(document).getElementsByClassName('headerField', headerarea)[0];
var height = headerarea.getHeight() - fromfield.getHeight() - 10;
if (Prototype.Browser.IE)
$("attachments").setStyle({ height: (height-9) + 'px' });
else
$("attachments").setStyle({ height: height + 'px' });
}
var subjectfield = headerarea.down("div#subjectRow span.headerField");
var subjectinput = headerarea.down("div#subjectRow input.textField");
@@ -744,7 +747,6 @@ function onWindowResize(event) {
setTimeout ('onWindowResize ()', 100);
return;
}
editor.absolutize ();
var content = $("cke_contents_text");
var height = Math.floor(window.height() - editor.offsetTop);