Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not layout items that are isHidden #14

Open
desandro opened this issue Feb 5, 2014 · 1 comment
Open

Do not layout items that are isHidden #14

desandro opened this issue Feb 5, 2014 · 1 comment

Comments

@desandro
Copy link
Member

desandro commented Feb 5, 2014

Per desandro/masonry#496, items that are isHidden should not need to be laid out. Consider changing _getItemsForLayout to

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;
};
@sculove
Copy link
Contributor

sculove commented Aug 24, 2015

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants