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

Prepended elements are considered as appended #44

Open
paolomoretti opened this issue Apr 7, 2017 · 0 comments
Open

Prepended elements are considered as appended #44

paolomoretti opened this issue Apr 7, 2017 · 0 comments

Comments

@paolomoretti
Copy link

paolomoretti commented Apr 7, 2017

When prepending (unshift) an element to the ngFor array the method _msnry.appended is called (instead of prepended) resulting in the item being at the bottom.

Maybe in AngularMasonryBrick component on ngAfterViewInit there could be a check to see if this._element is this._parent._msnry.items[0] and this._parent._msnry.items.length > 1 then it would be prepended

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

No branches or pull requests

1 participant