diff --git a/CHANGELOG b/CHANGELOG index cf08a0c94..ab7fd2bbd 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,7 +2,8 @@ CHANGELOG RoundCube Webmail --------------------------- 2008/10/01 (alec) -- Stop spellchecking when switching to html editor (#1485362) +- Fix spellchecking when switching to html editor (#1485362) +- Fix compose window width/height (#1485396) 2008/09/29 (alec) ---------- diff --git a/skins/default/mail.css b/skins/default/mail.css index 0ddff7f37..2784086b3 100644 --- a/skins/default/mail.css +++ b/skins/default/mail.css @@ -864,7 +864,6 @@ div.message-htmlpart div.rcmBody #receipt-selector { padding-left: 30px; - white-space: nowrap; } #compose-container @@ -874,44 +873,16 @@ div.message-htmlpart div.rcmBody left: 200px; right: 25px; bottom: 30px; - padding: 0px; margin: 0px; /* css hack for IE */ width: expression((parseInt(document.documentElement.clientWidth)-220)+'px'); - height: expression((parseInt(document.documentElement.clientHeight)-130)+'px'); + height: expression((parseInt(document.documentElement.clientHeight)-120)+'px'); } -/* #compose-headers -{ - position: absolute; - top: 70px; - left: 200px; - height: 84px; - border-top: 1px solid #cccccc; - overflow: auto; -} - -#compose-headers td -{ - padding-top: 1px; - padding-bottom: 1px; - border-right: 1px solid #cccccc; - border-bottom: 1px solid #cccccc; -} -*/ - -#compose-headers -{ - width: 100%; -} - -/* -#compose-headers td { width: 100%; } -*/ #compose-headers td.top { @@ -951,10 +922,8 @@ div.message-htmlpart div.rcmBody #compose-body { - margin-top: 5px; - margin-bottom: 10px; - height: 90%; - min-height: 280px; + min-height: 100px; + height: 100%; font-size: 9pt; font-family: "Courier New", Courier, monospace; } diff --git a/skins/default/templates/compose.html b/skins/default/templates/compose.html index 325f9341b..2e710ca82 100644 --- a/skins/default/templates/compose.html +++ b/skins/default/templates/compose.html @@ -10,20 +10,31 @@ function rcmail_show_header_form(id, link) { - var row, ns, ps; - if (row = document.getElementById(id)) - row.style.display = (document.all && !window.opera) ? 'block' : 'table-row'; - + var row, parent, ns, ps, links; + if (link) { + var parent = link.parentNode; + if ((ns = rcmail_next_sibling(link))) - link.parentNode.removeChild(ns); + parent.removeChild(ns); else if ((ps = rcmail_prev_sibling(link))) - link.parentNode.removeChild(ps); + parent.removeChild(ps); - link.parentNode.removeChild(link); + parent.removeChild(link); + + if(!parent.getElementsByTagName('A').length) + document.getElementById('compose-links').style.display = 'none'; } - + + if (row = document.getElementById(id)) + { + var div = document.getElementById('compose-div'); + var headers_div = document.getElementById('compose-headers-div'); + row.style.display = (document.all && !window.opera) ? 'block' : 'table-row'; + div.style.top = (parseInt(headers_div.offsetHeight)) + 'px'; + } + return false; } @@ -55,103 +66,75 @@ function rcmail_prev_sibling(elm)
- - - + + +
- - - - - - -   - -   - + + + + + + +   + +   +
- - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - -
- - - - - - :  - -
- -
- +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + +
+ + + + + + :  + +
+