Fixes changed after checked error in transaction page

This commit is contained in:
softsimon 2023-03-10 12:37:55 +09:00
parent 8a996e5679
commit 08f33c5c87

View File

@ -496,7 +496,9 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
@HostListener('window:resize', ['$event']) @HostListener('window:resize', ['$event'])
setGraphSize(): void { setGraphSize(): void {
if (this.graphContainer) { if (this.graphContainer) {
setTimeout(() => {
this.graphWidth = this.graphContainer.nativeElement.clientWidth; this.graphWidth = this.graphContainer.nativeElement.clientWidth;
}, 1);
} }
} }