Ray's fix for margin-top
This commit is contained in:
parent
c645c1b5df
commit
d6e4da6dad
|
@ -99,7 +99,11 @@ function mainTablePosition() {
|
||||||
var $height = $('#main-wrap > .subnav').height()
|
var $height = $('#main-wrap > .subnav').height()
|
||||||
var $table = $('#main-wrap > .table')
|
var $table = $('#main-wrap > .table')
|
||||||
//alert ($table.height())
|
//alert ($table.height())
|
||||||
$table.stop().animate({marginTop:$height-17},500)
|
$height = $height-17;
|
||||||
|
if($height<0){
|
||||||
|
$height = 0;
|
||||||
|
}
|
||||||
|
$table.stop().animate({marginTop:$height},500)
|
||||||
//$table.css({marginTop : $height})
|
//$table.css({marginTop : $height})
|
||||||
}
|
}
|
||||||
$(window).scroll(function () {
|
$(window).scroll(function () {
|
||||||
|
|
Loading…
Reference in New Issue