From a1f7220e9f23ea81b5b626d20f25039724b3413e Mon Sep 17 00:00:00 2001 From: alecpl 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) --- skins/default/mail.css | 4 ++-- skins/default/templates/addressbook.html | 19 +++++++++++++++---- skins/default/templates/mail.html | 17 ++++++++++++++--- skins/default/templates/message.html | 7 +++++++ 4 files changed, 38 insertions(+), 9 deletions(-) diff --git a/skins/default/mail.css b/skins/default/mail.css index 0c10ff717..fc47d0047 100644 --- a/skins/default/mail.css +++ b/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/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 @@ - +#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/skins/default/templates/mail.html b/skins/default/templates/mail.html index f4070e95f..24f851a20 100644 --- a/skins/default/templates/mail.html +++ b/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/skins/default/templates/message.html b/skins/default/templates/message.html index 3ab6cf30f..0cbd05fe6 100644 --- a/skins/default/templates/message.html +++ b/skins/default/templates/message.html @@ -5,6 +5,13 @@ + -- cgit v1.2.3