hack to make sidebar work slightly better on IE
parent
5521831f66
commit
8b42549df5
8
fof.js
8
fof.js
|
@ -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);
|
||||
|
|
16
header.php
16
header.php
|
@ -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)"-->
|
||||
|
|
Loading…
Reference in New Issue