title: jQuery Masonry. Update columnWidth on resize
body: <p>I'm trying to figure out how to change the columnWidth of my fluid masonry layout when the browser window is resized. So when the browser width is less that 1300px the columnWidth switches from 4 to 3.<br>
  Here's my jQuery:</p>
  
  <pre><code>jQuery(document).ready(function() {
  
          jQuery('#thumb-wrap, #thumb-wrap-2').masonry({
            itemSelector: '#thumb-container-1, #thumb-container-2',
            // set columnWidth a fraction of the container width
            columnWidth: function( containerWidth ) {
              return containerWidth / 4;
            }
  
            });
      });
  </code></pre>
  
  <p>Is this at all possible?</p>