title: Reset function on window resize
body: <p>I'm using the SlimScroll plugin for my website.</p>
  
  <p>I would like to reset/restart the slimscroll function on window resize, because the height and width should be changed according to the height and width of the <code>#content_wrapper</code> div.</p>
  
  <p>I tried it trough several ways but nothing seemed to do the trick. Below my current code. Does anyone know how I can achieve this?</p>
  
  <pre><code>$('#content_wrapper').slimScroll({
      width: $('#content_wrapper').css({'width':(($(window).width())-240)+'px'}),
      height: $('#content_wrapper').css({'height':(($(window).height())-65)+'px'})
  });
  
  // scrollbar onresize resetten
  $(window).resize(function(){    
      $('#content_wrapper').slimScroll({
          width: $('#content_wrapper').css({'width':(($(window).width())-240)+'px'}),
          height: $('#content_wrapper').css({'height':(($(window).height())-65)+'px'})
      });
  });
  </code></pre>