Hi,

i use the following code to set up the height of a div (framework):

> var GridTitle_OuterHeight = parseInt($("#gridtitle").outerHeight(),10);
> var Navigation_OuterHeight =  parseInt($("#navigation").outerHeight(),10);
> var FrmBottomBorder =  parseInt($("#framework").css("borderBottomWidth"),
> 10);
> var FrmTopBorder = parseInt($("#framework").css("borderTopWidth"), 10);
> ...

...
> $("#framework").height(op.height - GridTitle_OuterHeight - FrmTopBorder -
> FrmBottomBorder - Navigation_OuterHeight);
>

with op.height = 300.

when i user an alert() just after all vars but before the
$("#framework").height(..) as following:
alert("Op height : "+op.height + "\n\nGridTitle outer height : " +
GridTitle_OuterHeight + "\n\nNavigation height : " +
Navigation_OuterHeight);

it works correctly and returns me the good values.
however, the $("#framework").height(...) does not work under IE7, why ?
when i wrote it does not work, in fact, it does not setup the height of the
Framework div to the correct height, but to the default one :-(

any idea ?
thx.


-- 
Alain
-----------------------------------------------------------
Windows XP x64 SP2 / Fedora 10 KDE 4.2
PostgreSQL 8.3.5 / MS SQL server 2005
Apache 2.2.10
PHP 5.2.6
C# 2005-2008

Reply via email to