function fixColumnWidth(table) {
				var colgroup, overallWidth,
					c = table.config;
				if (c.widthFixed && c.$table.children('colgroup').length === 0) {
					colgroup = $('<colgroup>');
					overallWidth = $(table).width();
					// only add col for visible columns - fixes #371
					$(table.tBodies).not('.' + c.cssInfoBlock).find("tr:first").children(":visible").each(function() {
						colgroup.append($('<col>').css('width', parseInt(($(this).width()/overallWidth)*1000, 10)/10 + '%'));
					});
					c.$table.prepend(colgroup);
				}
			}
// automatically add col group, and column sizes if set
automatically add col group, and column sizes if set
automatically add col group and column sizes if set
function fixColumnWidth(table) {
				var colgroup, overallWidth,
					c = table.config;
				if (c.widthFixed && c.$table.children('colgroup').length === 0) {
					colgroup = $('<colgroup>');
					overallWidth = $(table).width();
					$(table.tBodies).not('.' + c.cssInfoBlock).find("tr:first").children(":visible").each(function() {
						colgroup.append($('<col>').css('width', parseInt(($(this).width()/overallWidth)*1000, 10)/10 + '%'));
					});
					c.$table.prepend(colgroup);
				}
			}
function fixColumnWidth ( table ) { var colgroup , overallWidth , c = table . config ; if ( c . widthFixed && c . $table . children ( 'colgroup' ) . length === 0 ) { colgroup = $ ( '<colgroup>' ) ; overallWidth = $ ( table ) . width ( ) ; $ ( table . tBodies ) . not ( '.' + c . cssInfoBlock ) . find ( "tr:first" ) . children ( ":visible" ) . each ( function ( ) { colgroup . append ( $ ( '<col>' ) . css ( 'width' , parseInt ( ( $ ( this ) . width ( ) / overallWidth ) * 1000 , 10 ) / 10 + '%' ) ) ; } ) ; c . $table . prepend ( colgroup ) ; } }
automatically add col group, and column sizes if set
automatically add col group and column sizes if set
// only add col for visible columns - fixes #371