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

Bricks start from left position initially. #60

Open
vugar005 opened this issue Nov 10, 2017 · 2 comments
Open

Bricks start from left position initially. #60

vugar005 opened this issue Nov 10, 2017 · 2 comments

Comments

@vugar005
Copy link

vugar005 commented Nov 10, 2017

Hi
I am facing issue which is pretty annoying. When bricks start initially they start from left position. I used imagesloaded = true and see no errors in console.

  <div class="masonryContainer">
    <masonry [useImagesLoaded]="true"  [options]="myOptions" *ngIf="showEmployees" >
      <masonry-brick *ngFor="let employee of employees" class="brick " >
        <div class="employeeBox" >
          <div class="employeePhoto">
            <img src="assets/icons/user.svg">
          </div>
          <div class="employeeInfo">
            <p>{{employee.name}}</p>
          </div>
          <div class="employeeBottom">
            <span></span>
            <span></span>
            <span></span>
          </div>
        </div>
      </masonry-brick>
    </masonry>
  </div>

The interesting is that I use masonry also in another component with same code and facing no issue.
What is the cause of it? Hope someone give advice.
20171110_105758

@Shailu4u
Copy link

@vugar005 You can check out this new Masonry library https://github.com/Shailu4u/ng-masonry-grid

@vugar005
Copy link
Author

@Shailu4u thanks I would try that

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

2 participants