Skip to content

Commit

Permalink
Fixed #9744 - Galleria: thumbnail items doesn't work properly when re…
Browse files Browse the repository at this point in the history
…sponsive options are set
  • Loading branch information
yigitfindikli committed Mar 2, 2021
1 parent aa125ec commit 3725a5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/components/galleria/galleria.ts
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,8 @@ export class GalleriaThumbnails implements OnInit, AfterContentChecked, OnDestro

_oldactiveIndex: number = 0;

constructor(private cd: ChangeDetectorRef) { }

ngOnInit() {
this.createStyle();
this.calculatePosition();
Expand Down Expand Up @@ -685,6 +687,7 @@ export class GalleriaThumbnails implements OnInit, AfterContentChecked, OnDestro

if (this.d_numVisible !== matchedResponsiveData.numVisible) {
this.d_numVisible = matchedResponsiveData.numVisible;
this.cd.markForCheck();
}
}
}
Expand Down

0 comments on commit 3725a5a

Please sign in to comment.