var Grid_width;
vargrid_init=false;
function caculate_grid_width_func(){
var tabPanel = $('#documentlist').closest('.tabs-panels');
if(tabPanel.length>0){
grid_width = tabPanel.width();
}else{
grid_width=$('#documentlist').width();
}
}
/**백분율 설정*/
function count_width_func(columnWidth){
var result = 128;
var diff = 0;
columnWidth=null==columnWidth||''==columnWidth||'100%'==columnWidth?'128':columnWidth;
if ( $.browser.msie ){
if('9.0'==$.browser.version )
diff=3;
else if('8.0'==$.browser.version )
diff=3;
그 외
diff=6;
}
else if($.browser.chrome)
diff=5;
그렇지 않은 경우
diff=2;
if(columnWidth.indexOf('%')>0){
columnWidth=columnWidth.replace('%','')*1;
결과=grid_width*columnWidth/100;
}
else if(columnWidth.indexOf('px')>0){
columnWidth=columnWidth.replace('px','');
결과=열 너비;
}
else
result=columnWidth;
Math.ceil(결과)-diff를 반환합니다.
}