Skip to content

Commit

Permalink
fix: detect changes after initial load (#1897)
Browse files Browse the repository at this point in the history
  • Loading branch information
domsteinbach authored Nov 19, 2024
1 parent 6a0bac8 commit 963c070
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
AfterViewInit,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ElementRef,
Input,
Expand Down Expand Up @@ -51,6 +52,7 @@ export class StillImageComponent implements OnChanges, AfterViewInit, OnDestroy
isPng = false;

constructor(
private _cdr: ChangeDetectorRef,
protected osdService: OpenSeaDragonService,
private _osdDrawerService: OsdDrawerService
) {}
Expand All @@ -66,6 +68,7 @@ export class StillImageComponent implements OnChanges, AfterViewInit, OnDestroy
this.osdService.onInit(this.osdViewerElement.nativeElement);
this._osdDrawerService.onInit(this.resource);
this.isViewInitialized = true;
this._cdr.detectChanges();
this._loadImage();
}

Expand Down

0 comments on commit 963c070

Please sign in to comment.