From dcaede1fb0577f3bb924a1f6a7311c4e919f63d1 Mon Sep 17 00:00:00 2001 From: Michael Czechowski Date: Mon, 6 Aug 2018 17:41:33 +0200 Subject: [PATCH] removed update-on-resize function --- src/app/components/graphs.component.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/app/components/graphs.component.ts b/src/app/components/graphs.component.ts index cb37094..4b17c67 100644 --- a/src/app/components/graphs.component.ts +++ b/src/app/components/graphs.component.ts @@ -41,15 +41,8 @@ export class GraphsComponent implements OnChanges { private genLoadedAllGraphs: any | null; @Input() config: any; - - @ViewChild('svg') svgElementRef; - @Output() svgChange = new EventEmitter(); - - @HostListener('window:resize', ['$event']) - private onResize(event) { - this.init(); - } + @ViewChild('svg') svgElementRef; constructor( private canvasService: CanvasService