Ray's fix for announcement list
This commit is contained in:
parent
6728c35023
commit
f8873267a2
|
@ -51,7 +51,7 @@ $(document).ready(function(){
|
||||||
$('#main-sidebar').css("height", viewportheight-30);
|
$('#main-sidebar').css("height", viewportheight-30);
|
||||||
$('#main-sidebar .viewport').css("height", viewportheight-30);
|
$('#main-sidebar .viewport').css("height", viewportheight-30);
|
||||||
$('.post-title').css("width", viewportwidth-495);
|
$('.post-title').css("width", viewportwidth-495);
|
||||||
$('#main-wrap > .subnav').css("width", viewportwidth-$mainWrapMarginLeft)
|
$('#main-wrap .subnav').css("width", viewportwidth-$mainWrapMarginLeft);
|
||||||
$('#main-sidebar').tinyscrollbar();
|
$('#main-sidebar').tinyscrollbar();
|
||||||
$('.detal-list').tinyscrollbar();
|
$('.detal-list').tinyscrollbar();
|
||||||
$('#main-sidebar').tinyscrollbar({size:(viewportheight-34)});
|
$('#main-sidebar').tinyscrollbar({size:(viewportheight-34)});
|
||||||
|
@ -72,14 +72,14 @@ $(window).resize(function(){
|
||||||
$('#main-sidebar').css("height", viewportheight-30);
|
$('#main-sidebar').css("height", viewportheight-30);
|
||||||
$('#main-sidebar .viewport').css("height", viewportheight-30);
|
$('#main-sidebar .viewport').css("height", viewportheight-30);
|
||||||
$('.post-title').css("width", viewportwidth-495);
|
$('.post-title').css("width", viewportwidth-495);
|
||||||
$('#main-wrap > .subnav').css("width", viewportwidth-$mainWrapMarginLeft)
|
$('#main-wrap .subnav').css("width", viewportwidth-$mainWrapMarginLeft)
|
||||||
$('#main-sidebar').tinyscrollbar({size:(viewportheight-34)});
|
$('#main-sidebar').tinyscrollbar({size:(viewportheight-34)});
|
||||||
mainTablePosition();
|
mainTablePosition();
|
||||||
});
|
});
|
||||||
/*main-table position*/
|
/*main-table position*/
|
||||||
function mainTablePosition() {
|
function mainTablePosition() {
|
||||||
var $height = $('#main-wrap .subnav').length && $('#main-wrap .subnav').height();
|
var $height = $('#main-wrap .subnav').length && $('#main-wrap .subnav').height();
|
||||||
var $table = $('#main-wrap > table').length && $('#main-wrap > table');
|
var $table = $('.main-list').length && $('.main-list:last');
|
||||||
if($table && $table==0){
|
if($table && $table==0){
|
||||||
$table.css({marginTop:$height});
|
$table.css({marginTop:$height});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue