anchor.diff:          }
         })
     ;
  +  //fixes the problem when colvis has too many columns and overflows page height
  +  jQuery(document).on('click', 'a.buttons-colvis', function () {
  +    jQuery("div.dt-button-collection.fixed."+colvis_ncol+"-column").css({width: "auto"});
  +  });
     table.buttons().container().insertBefore( '#compounds_attributes_filter' );
  +
   });
  +
   </script>
positive.code:       },
        {
          extend: 'colvis',
          columns: ':not(:nth-child(2))', //(:first-child)
          collectionLayout: 'fixed three-column',
  
          //added a button to show none of the columns except the default first.
          postfixButtons: [ {extend: 'colvisGroup',
                             text: 'Show none',
                             show: ':hidden',
                             hide: ':not(:nth-child(2))'},
                          'colvisRestore']
        },
  
        {
  
negative.code: 		console.log( "jQuery.fn.andSelf() is deprecated and removed. Remove this code once datatables.net-buttons is updated to 1.2.2 or higher" );
  		return oldSelf.apply( this, arguments );
  	};
    var colvis_ncol = 'four';
    var table = jQuery('#compounds_attributes').DataTable({
      // responsive: true,//0.67*jQuery("body")[0].clientHeight,
      scrollX: true,
  