diff --git a/src/masonry.ts b/src/masonry.ts index 80c01a3..6e0d70e 100644 --- a/src/masonry.ts +++ b/src/masonry.ts @@ -64,9 +64,11 @@ export class AngularMasonry implements OnInit, OnDestroy { // Bind to events this._msnry.on('layoutComplete', (items: any) => { this.layoutComplete.emit(items); + this.layout(); }); this._msnry.on('removeComplete', (items: any) => { this.removeComplete.emit(items); + this.layout(); }); } @@ -127,4 +129,4 @@ export class AngularMasonry implements OnInit, OnDestroy { // console.log('AngularMasonry:', 'Brick removed'); } -} \ No newline at end of file +}