From 071c78c3a4f344f1005c8be8ba895a91452de6b9 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Fri, 20 Jan 2012 10:46:15 -0500
Subject: [PATCH] Fine tuning Larry styles + browser specific css quirks

---
 skins/larry/ui.js |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index f4d44af..36159ea 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -82,7 +82,7 @@
         $('#previewheaderstoggle').click(function(e){ toggle_preview_headers(this); return false });
       }
       else if (rcmail.env.action == 'compose') {
-        rcmail.addEventListener('aftertoggle-editor', function(){ window.setTimeout(function(){ layout_composeview() }, 100); });
+        rcmail.addEventListener('aftertoggle-editor', function(){ window.setTimeout(function(){ layout_composeview() }, 200); });
         rcmail.addEventListener('aftersend-attachment', show_uploadform);
         rcmail.addEventListener('add-recipient', function(p){ show_header_row(p.field, true); });
         layout_composeview();
@@ -95,7 +95,7 @@
         }).css('cursor', 'pointer');
 
         new rcube_splitter({ id:'composesplitterv', p1:'#composeview-left', p2:'#composeview-right',
-          orientation:'v', relative:true, start:248, min:170, size:12 }).init();
+          orientation:'v', relative:true, start:248, min:170, size:12, render:layout_composeview }).init();
       }
       else if (rcmail.env.action == 'list' || !rcmail.env.action) {
           mailviewsplit = new rcube_splitter({ id:'mailviewsplitter', p1:'#mailview-top', p2:'#mailview-bottom',
@@ -271,22 +271,26 @@
   function layout_composeview()
   {
     var body = $('#composebody'),
+      form = $('#compose-content'),
       bottom = $('#composeview-bottom'),
       w, h;
 
-    bottom.css('height', (bottom.parent().height() - bottom.position().top) + 'px');
+    bottom.css('height', (form.height() - bottom.position().top) + 'px');
 
-    w = body.parent().width() - 8;
+    w = body.parent().width() - 6;
     h = body.parent().height() - 36;
     body.width(w).height(h);
 
     if (window.tinyMCE && tinyMCE.get('composebody')) {
-      $('#composebody_tbl').width((w+12)+'px').height('').css('margin-top', '1px');
-      $('#composebody_ifr').width((w+12)+'px').height((h-22)+'px');
+      $('#composebody_tbl').width((w+10)+'px').height('').css('margin-top', '1px');
+      $('#composebody_ifr').width((w+10)+'px').height((h-22)+'px');
     }
     else {
       $('#googie_edit_layer').height(h+'px');
     }
+    
+    var abooks = $('#directorylist');
+    $('#compose-contacts .scroller').css('top', abooks.position().top + abooks.outerHeight());
   }
 
 

--
Gitblit v1.9.1