From 371098805b90e3eebbaff181703a0e4e79e795bc Mon Sep 17 00:00:00 2001 From: cyuamber Date: Fri, 20 Sep 2019 17:51:54 +0800 Subject: bug: fix problems caused by switching routes Change-Id: I9558b3fd6b8df089a5da47a08ee89c069b4fcb34 Issue-ID: USECASEUI-306 Signed-off-by: cyuamber --- .../src/app/shared/components/charts/pie/pie.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usecaseui-portal/src/app/shared/components/charts') diff --git a/usecaseui-portal/src/app/shared/components/charts/pie/pie.component.ts b/usecaseui-portal/src/app/shared/components/charts/pie/pie.component.ts index d22ffb02..85cf72ee 100644 --- a/usecaseui-portal/src/app/shared/components/charts/pie/pie.component.ts +++ b/usecaseui-portal/src/app/shared/components/charts/pie/pie.component.ts @@ -110,9 +110,9 @@ export class PieComponent implements OnInit { }) } - resize(size: number){ + resize(parentHeight: number, size: number){ this.chartIntance.resize( { - height: size - 250 + height: parentHeight - size }) } -- cgit 1.2.3-korg