summaryrefslogtreecommitdiff
path: root/skins/default/templates/addressbook.html
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-09-20 08:32:00 +0000
committeralecpl <alec@alec.pl>2008-09-20 08:32:00 +0000
commita1f7220e9f23ea81b5b626d20f25039724b3413e (patch)
tree011d0ec75f2674be368a18f97a7c3c363c8d36e9 /skins/default/templates/addressbook.html
parentfc1a10b4d5f0128297e2475d09132187da7d08a8 (diff)
- prevent splitters "jumps" when page is loading (set style reading cookie in skin template, using new 'expression' feature)
Diffstat (limited to 'skins/default/templates/addressbook.html')
-rw-r--r--skins/default/templates/addressbook.html19
1 files changed, 15 insertions, 4 deletions
diff --git a/skins/default/templates/addressbook.html b/skins/default/templates/addressbook.html
index 999947730..326ded296 100644
--- a/skins/default/templates/addressbook.html
+++ b/skins/default/templates/addressbook.html
@@ -6,14 +6,25 @@
<link rel="stylesheet" type="text/css" href="/addresses.css" />
<script type="text/javascript" src="/splitter.js"></script>
-<roundcube:if condition="config:ldap_public == false" />
<style type="text/css">
+<roundcube:if condition="config:ldap_public == false" />
#abookcountbar { left: 20px;}
#mainscreen { left:20px; /* IE hack */ width:expression((parseInt(document.documentElement.clientWidth)-40)+'px') }
-#addresslist { width:245px }
-#contacts-box { left:255px; /* IE hack */ width:expression((parseInt(mainscreen.offsetWidth)-255)+'px') }
-</style>
+#addresslist { width: <roundcube:exp expression="!empty(cookie:addressviewsplitter) ? cookie:addressviewsplitter-5 : 245" />px; }
+#contacts-box {
+ left: <roundcube:exp expression="!empty(cookie:addressviewsplitter) ? cookie:addressviewsplitter+5 : 255" />px;
+ /* IE hack */
+ width:expression((parseInt(mainscreen.offsetWidth)-<roundcube:exp expression="!empty(cookie:addressviewsplitter) ? cookie:addressviewsplitter+5 : 255" />)+'px')
+}
+<roundcube:else />
+#addresslist { width: <roundcube:exp expression="!empty(cookie:addressviewsplitter) ? cookie:addressviewsplitter-5 : 245" />px; }
+#contacts-box {
+ left: <roundcube:exp expression="!empty(cookie:addressviewsplitter) ? cookie:addressviewsplitter+5 : 255" />px;
+ /* IE hack */
+ width:expression((parseInt(mainscreen.offsetWidth)-<roundcube:exp expression="!empty(cookie:addressviewsplitter) ? cookie:addressviewsplitter+5 : 255" />)+'px')
+}
<roundcube:endif />
+</style>
</head>
<body>