mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-08 19:45:08 +00:00
(fuse/masonry) Fixed: Masonry doesn't work with the data that comes from async pipe
This commit is contained in:
parent
b0f1e1de95
commit
5ac7002a98
|
@ -38,11 +38,6 @@ export class FuseMasonryComponent implements OnChanges, AfterViewInit
|
||||||
// Columns
|
// Columns
|
||||||
if ( 'columns' in changes )
|
if ( 'columns' in changes )
|
||||||
{
|
{
|
||||||
if ( changes.columns.isFirstChange() )
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Distribute the items
|
// Distribute the items
|
||||||
this._distributeItems();
|
this._distributeItems();
|
||||||
}
|
}
|
||||||
|
@ -50,11 +45,6 @@ export class FuseMasonryComponent implements OnChanges, AfterViewInit
|
||||||
// Items
|
// Items
|
||||||
if ( 'items' in changes )
|
if ( 'items' in changes )
|
||||||
{
|
{
|
||||||
if ( changes.columns.isFirstChange() )
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Distribute the items
|
// Distribute the items
|
||||||
this._distributeItems();
|
this._distributeItems();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user