title: Only apply jQuery waterfall 'reflow' after the images have loaded
body: <p>i am using jQuery waterfall for my grid style display.</p>
  
  <p>To stop the common images overlapping issue i have wrapped the waterfall method in a .load() function such as:</p>
  
  <pre><code>$(window).load(function(){
    $('#buildcontainer').waterfall({ 
      colMinWidth: 260, 
      defaultContainerWidth: 1000,
      autoresize: true
    });
  });
  </code></pre>
  
  <p>The images overlap because the waterfall function is called before the images have fully loaded there for their height cannot be determined. Wrapping the function in the load function prevents this.</p>
  
  <p>The problem is, i have a button which loads more database results via ajax and appends them to the container. </p>
  
  <p>When the items are appended, the images overlap. jQuery waterfall comes with a 'reflow' function which re sorts all of the items inside the container.</p>
  
  <p>In my ajax success i run it like so:</p>
  
  <pre><code>success: function(html) {                   
    $("#buildcontainer").append(html).waterfall('reflow');
  }
  </code></pre>
  
  <p>The issue i see here is that the images are being appended, and then the waterfall function is being called but the images are not yet fully loaded.</p>
  
  <p>Is there a way i can only run the waterfall('reflow') after the items have fully loaded. In the same style as the:</p>
  
  <pre><code>    $(window).load(function(){
      });
  </code></pre>
  
  <p>I have tried wrapping the line where the items are appended into this function, i have also tried just appending the items and then applying the reflow inside a .load function but both of these dont append any items.</p>
  
  <p>Any help / ideas on what to try next? Thanks!</p>
  
  <p>Note: The images dont overlap in FF, but do in chrome and safari.</p>
  
  <p>Thanks!</p>