Open desandro opened 10 years ago
Per desandro/masonry#496, items that are isHidden should not need to be laid out. Consider changing _getItemsForLayout to
_getItemsForLayout
Masonry.prototype._getItemsForLayout = function( items ) { var layoutItems = []; for ( var i=0, len = items.length; i < len; i++ ) { var item = items[i]; if ( !item.isIgnored && !item.isHidden ) { layoutItems.push( item ); } } return layoutItems; };
+1
Per desandro/masonry#496, items that are isHidden should not need to be laid out. Consider changing
_getItemsForLayout
to