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

Angular 11 ordered not working #75

Closed
nicoschuck opened this issue Feb 28, 2021 · 1 comment
Closed

Angular 11 ordered not working #75

nicoschuck opened this issue Feb 28, 2021 · 1 comment

Comments

@nicoschuck
Copy link

I want to keep the order of my array. For that i use the ordered directive:

<ngx-masonry [options]="{ gutter: 32, originLeft: true, fitWidth: true }" [ordered]="true">
    <div class="square" *ngFor="let n of [1, 2, 3, 4, 5, 6, 7, 8, 9]">{{n}}</div>
</ngx-masonry>

Unfortunately only 1 or 2 squares are displayed (depends on screen width). The other elements has the following style:

position: fixed;
right: -150vw;

which is the reason why I can't see them. Is this issue known?

@nicoschuck
Copy link
Author

I figured out. It is not possible to use the ordered directive like in the documentation. It is possible to keep the original order by horizontalOrder: true in the MasonryOptions.

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