From c8dc07e4ddadc0020e20392021ec44841b767237 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Thu, 05 Jul 2012 13:20:52 -0400
Subject: [PATCH] Move splitter between the boxes of message list and message preview

---
 skins/larry/templates/mail.html |    4 ++--
 skins/larry/mail.css            |   10 ++--------
 skins/larry/ui.js               |    7 +++----
 3 files changed, 7 insertions(+), 14 deletions(-)

diff --git a/skins/larry/mail.css b/skins/larry/mail.css
index eb29089..27cc768 100644
--- a/skins/larry/mail.css
+++ b/skins/larry/mail.css
@@ -48,12 +48,6 @@
 	height: 26px;
 }
 
-#mailviewsplitter {
-	right: 30px;
-	width: 30px;
-	left: auto !important;
-}
-
 #folderlist-header {
 	width: 100%;
 	height: 12px;
@@ -325,11 +319,11 @@
 	position: absolute;
 	right: 256px;
 	width: auto;
-	top: 8px;
+	top: 7px;
 }
 
 #searchfilter select {
-	height: 24px;
+	height: 26px;
 }
 
 #mailview-left select.mailboxlist {
diff --git a/skins/larry/templates/mail.html b/skins/larry/templates/mail.html
index 404a8ad..01a5986 100644
--- a/skins/larry/templates/mail.html
+++ b/skins/larry/templates/mail.html
@@ -5,8 +5,8 @@
 <roundcube:include file="/includes/links.html" />
 <style type="text/css">
 <roundcube:if condition="config:preview_pane == true" />
-	#mailview-top { height: <roundcube:exp expression="!empty(cookie:mailviewsplitter) ? cookie:mailviewsplitter-45 : 300" />px; }
-	#mailview-bottom { top: <roundcube:exp expression="!empty(cookie:mailviewsplitter) ? cookie:mailviewsplitter+5 : 320" />px; height: auto; }
+	#mailview-top { height: <roundcube:exp expression="!empty(cookie:mailviewsplitter) ? cookie:mailviewsplitter-48 : 276" />px; }
+	#mailview-bottom { top: <roundcube:exp expression="!empty(cookie:mailviewsplitter) ? cookie:mailviewsplitter+6 : 330" />px; height: auto; }
 	#mailpreviewframe { display: block; }
 <roundcube:endif />
 </style>
diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index 884ee55..906ea6e 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -108,7 +108,7 @@
         $('#mailthreadmode').addClass(rcmail.env.threading ? 'selected' : '').click(function(e){ switch_view_mode('thread'); return false });
 
         mailviewsplit = new rcube_splitter({ id:'mailviewsplitter', p1:'#mailview-top', p2:'#mailview-bottom',
-          orientation:'h', relative:true, start:310, min:150, size:6, offset:-18 });
+          orientation:'h', relative:true, start:310, min:150, size:12, offset:4 });
         if (previewframe)
           mailviewsplit.init();
 
@@ -171,7 +171,7 @@
       }
 
       var select = $(this),
-        height = Math.max(select.height(), 24) - 2,
+        height = Math.max(select.height(), 26) - 2,
         width = select.width() - 22,
         title = $('option', this).first().text();
 
@@ -314,8 +314,7 @@
 
   function resize_leftcol(splitter)
   {
-    if (0&&splitter)
-      $('#quicksearchbar input').css('width', (splitter.pos - 70) + 'px');
+    // STUB
   }
 
 

--
Gitblit v1.9.1