angular2-masonry icon indicating copy to clipboard operation
angular2-masonry copied to clipboard

Bricks start from left position initially.

Open vugar005 opened this issue 7 years ago • 2 comments

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

vugar005 avatar Nov 10 '17 06:11 vugar005

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

Shailu4u avatar Jan 24 '18 10:01 Shailu4u

@Shailu4u thanks I would try that

vugar005 avatar Jan 24 '18 10:01 vugar005