I used the isotope from the site http://isotope.metafizzy.co/ and implemented a method to use load more items by pressing a button. The problem is that when i hide the elements to display only the initial number of elements, my isotope grid won't scale. If i press the show more button, the layout accurately scales.
It seems that
$grid.isotope('hideItemElements', $(this)).isotope('layout');
but
$grid.isotope('revealItemElements', $(this)).isotope('layout');
works just fine. Can you please tell me what am i doing wrong?
Here is a demo in codepan: http://codepen.io/laura-chesches/pen/RKPWGo