mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-24 02:46:24 +00:00
Fix for bug #1641.
Monotone-Parent: e27ba437a27fa40967d6195b9f420b3c36988d81 Monotone-Revision: 15825926d3d6130838a6e8a925fb390321c6e5fa Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2012-02-10T03:17:52 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -622,6 +622,7 @@ function onWindowResize(event) {
|
||||
textarea.setStyle({ 'top': hr.offsetTop + 'px' });
|
||||
|
||||
// Resize the textarea (message content)
|
||||
var offsetTop = $('rightPanel').offsetTop + headerarea.getHeight();
|
||||
var composeMode = UserDefaults["SOGoMailComposeMessageType"];
|
||||
if (composeMode == "html") {
|
||||
var editor = $('cke_text');
|
||||
@@ -629,23 +630,11 @@ function onWindowResize(event) {
|
||||
onWindowResize.defer();
|
||||
return;
|
||||
}
|
||||
var ck_top = $("cke_top_text");
|
||||
var ck_bottom = $("cke_bottom_text");
|
||||
var content = $("cke_contents_text");
|
||||
var top = hr.offsetTop;
|
||||
var height = Math.floor(window.height() - top - ck_top.getHeight() - ck_bottom.getHeight());
|
||||
height = height - 15;
|
||||
|
||||
if (Prototype.Browser.IE) {
|
||||
editor.style.width = '';
|
||||
editor.style.height = '';
|
||||
}
|
||||
|
||||
editor.setStyle({ top: (top + 2) + 'px' });
|
||||
content.setStyle({ height: height + 'px' });
|
||||
var height = window.height() - offsetTop;
|
||||
CKEDITOR.instances["text"].resize('100%', height);
|
||||
}
|
||||
else
|
||||
textarea.rows = Math.floor((window.height() - textarea.offsetTop) / rowheight);
|
||||
textarea.rows = Math.floor((window.height() - offsetTop) / rowheight);
|
||||
|
||||
// Resize search contacts addressbook selector
|
||||
if ($("contacts").visible())
|
||||
|
||||
Reference in New Issue
Block a user