Skip to content

Commit ac19481

Browse files
committed
fix(ngx-components): audio-viewer does not resize properly
1 parent 4b83e0c commit ac19481

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

libs/ngx-components/src/lib/components/audio/audio-viewer/audio-viewer.component.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,11 @@ export class AudioViewerComponent implements OnInit, OnChanges, OnDestroy {
566566
this.updatePlayCursor();
567567
}
568568
if (this.stage !== undefined) {
569-
this.layers?.background.batchDraw();
569+
const groups: Konva.Group[] | undefined = this.layers?.background.find(".line");
570+
groups?.map(a => {
571+
a.cache();
572+
return a;
573+
});
570574
this.layers?.overlay.batchDraw();
571575
}
572576
}

0 commit comments

Comments
 (0)