hack to make sidebar work slightly better on IE

orig_fof
steveminutillo 2007-06-07 04:07:38 +00:00
parent 5521831f66
commit 8b42549df5
2 changed files with 22 additions and 2 deletions

8
fof.js
View File

@ -123,7 +123,13 @@ function completeDrag(e)
$('sidebar').style.width=newWidth+'px';
$('handle').style.left=newWidth+'px';
$('items').style.marginLeft=(newWidth+20)+'px';
if(isIE)
{
tables = $$('#sidebar table');
for(i=0;i<tables.length;i++){
tables[i].style.width=(newWidth-20)+'px';
}
}
var today = new Date();
var expire = new Date();
expire.setTime(today.getTime() + 3600000*24*100);

View File

@ -44,6 +44,8 @@ else
<?php if($fof_user_prefs['keyboard']) { ?>
document.onkeypress = keyboard;
<?php } ?>
isIE = false;
</script>
<style>
@ -51,7 +53,7 @@ else
{
width: <?php echo $width ?>px;
}
#handle
{
left:<?php echo $width ?>px;
@ -63,6 +65,18 @@ else
}
</style>
<!--[if IE]>
<style>
#sidebar table
{
width: <?php echo $width - 20?>px;
}
</style>
<script>isIE = true;</script>
<![endif]-->
</head>
<body class="highlight-on"> <!--onkeypress="keyboard(event)"-->