Blame view

src/main/webapp/common/js/dMCustomScrollbar.js 268 Bytes
caiyongsong committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
var dMCustomScrollbar=function(dw){
	var wwidth=$(window).width();
	if(wwidth>dw){
		$('#bodyContent').width('100%');
	}else{
		$('#bodyContent').width(dw);
	}
}

$(function(){
	dMCustomScrollbar(1366);
	$(window).resize(function(){
		dMCustomScrollbar(1366);
	});
});