title: DataTables.net custom font-size after sorting
body: <p>I'm using <a href="https://www.datatables.net/" rel="nofollow">DataTables.net</a> to insert a Table in my website. I also added a function to add/remove columns in this table. In order to fit the container size, I change the font-size in the table in respect to the column number.</p>
  
  <p><strong>My problem</strong>: If I use the sorting function (arrows next to the header), those changes in font-size are not considered.</p>
  
  <p><strong>For example</strong>: <br>I have my table and add a 5. column. After this, the font-size changes to 0.8em. The I push the sorting arrow in order to sort my results. The table reloads with the original font-size 1.0em.<br></p>
  
  <p>Is there a possibility to intercept the sorting function to insert my method to change the font-size? Or does anybody has another idea to solve that problem?</p>
  
  <p><strong>EDIT:</strong> I have the same problem when i change the page in order to show more results in the table.</p>
  
  <p><strong>EDIT:</strong> Here is the code I use to change the font-size(it works on the actual table view, but not if I change the table by sorting or changing pages). I call that method whenever a column has been added/removed.</p>
  
  <pre><code> if(counter &lt; model.getMaxCol()){
      $('#room-table tr').css('font-size', "1.0em");
   }
   else if(counter = model.getMaxCol()){  
      $('#room-table tr').css('font-size', "0.75em");
   }
  </code></pre>