From a3e7730ef19fc80c84369f3f9c411a3eadb650dc Mon Sep 17 00:00:00 2001 From: C Robert Date: Fri, 31 Jul 2009 13:52:29 +0000 Subject: [PATCH] Mantis 83: HTML + IE7 Monotone-Parent: 754c42e76d98f86e1fdd3158973b91b56f2db830 Monotone-Revision: e01d0df10ecfe018a8dc8810da911702d7a40d28 Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-07-31T13:52:29 Monotone-Branch: ca.inverse.sogo --- UI/WebServerResources/UIxMailEditor.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/UI/WebServerResources/UIxMailEditor.js b/UI/WebServerResources/UIxMailEditor.js index d0a78a9fd..cac26d949 100644 --- a/UI/WebServerResources/UIxMailEditor.js +++ b/UI/WebServerResources/UIxMailEditor.js @@ -748,15 +748,17 @@ function onWindowResize(event) { var content = $("cke_contents_text"); var height = Math.floor(window.height() - editor.offsetTop); + content.height = (height-60) + "px"; + content.style.height = (height-60) + "px"; + if (Prototype.Browser.IE) { editor.style.width = ''; editor.style.height = ''; height += 3; } - - content.height = (height-60) + "px"; - content.style.height = (height-60) + "px"; - content.setStyle({ 'top': hr.offsetTop + 'px' }); + else { + content.setStyle({ 'top': hr.offsetTop + 'px' }); + } } else textarea.rows = Math.floor((window.height() - textarea.offsetTop) / rowheight);