From 8715e7dca5670530e3c1d198103abfd2bb594b1a Mon Sep 17 00:00:00 2001 From: alec Date: Sat, 20 Sep 2008 08:32:00 +0000 Subject: - prevent splitters "jumps" when page is loading (set style reading cookie in skin template, using new 'expression' feature) git-svn-id: https://svn.roundcube.net/trunk@1861 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/skins/default/mail.css | 4 ++-- .../skins/default/templates/addressbook.html | 19 +++++++++++++++---- roundcubemail/skins/default/templates/mail.html | 17 ++++++++++++++--- roundcubemail/skins/default/templates/message.html | 7 +++++++ 4 files changed, 38 insertions(+), 9 deletions(-) diff --git a/roundcubemail/skins/default/mail.css b/roundcubemail/skins/default/mail.css index 0c10ff717..fc47d0047 100644 --- a/roundcubemail/skins/default/mail.css +++ b/roundcubemail/skins/default/mail.css @@ -633,8 +633,8 @@ html>body*input[type$="file"]:not([class="none"]) { background-color: transparen background-color: #FFF; overflow: auto; /* css hack for IE */ - width: expression((parseInt(document.documentElement.clientWidth)-220)+'px'); - height: expression((parseInt(document.documentElement.clientHeight)-125)+'px'); + width: expression((parseInt(this.parentNode.offsetWidth)-170)+'px'); + height: expression((parseInt(this.parentNode.offsetHeight))+'px'); } #printmessageframe diff --git a/roundcubemail/skins/default/templates/addressbook.html b/roundcubemail/skins/default/templates/addressbook.html index 999947730..326ded296 100644 --- a/roundcubemail/skins/default/templates/addressbook.html +++ b/roundcubemail/skins/default/templates/addressbook.html @@ -6,14 +6,25 @@ - +#addresslist { width: px; } +#contacts-box { + left: px; + /* IE hack */ + width:expression((parseInt(mainscreen.offsetWidth)-)+'px') +} + +#addresslist { width: px; } +#contacts-box { + left: px; + /* IE hack */ + width:expression((parseInt(mainscreen.offsetWidth)-)+'px') +} + diff --git a/roundcubemail/skins/default/templates/mail.html b/roundcubemail/skins/default/templates/mail.html index f4070e95f..24f851a20 100644 --- a/roundcubemail/skins/default/templates/mail.html +++ b/roundcubemail/skins/default/templates/mail.html @@ -41,11 +41,22 @@ body_keypress: function(evt, p) }; - + +#mailcontframe { height: px; } +#mailpreviewframe { + top: px; + /* css hack for IE */ + height: expression((parseInt(this.parentNode.offsetHeight)-)+'px'); +} +#mailboxlist-container { width: px; } +#mailrightcontainer { + left: px; + /* css hack for IE */ + width: expression((parseInt(this.parentNode.offsetWidth)-)+'px'); +} + diff --git a/roundcubemail/skins/default/templates/message.html b/roundcubemail/skins/default/templates/message.html index 3ab6cf30f..0cbd05fe6 100644 --- a/roundcubemail/skins/default/templates/message.html +++ b/roundcubemail/skins/default/templates/message.html @@ -5,6 +5,13 @@ + -- cgit v1.2.3