From c176eb964eb4877adb35a502791a13434bd57c76 Mon Sep 17 00:00:00 2001 From: cyuamber Date: Tue, 17 Sep 2019 16:49:24 +0800 Subject: style: optimize the style of the home page Change-Id: I963cdb61aebcb4d049cfc4cc19c5d5dc3b743986 Issue-ID: USECASEUI-307 Signed-off-by: cyuamber --- .../src/app/shared/components/charts/pie/pie.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'usecaseui-portal/src/app/shared/components/charts/pie/pie.component.ts') 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 dc5c80a0..d22ffb02 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 @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { Component, OnInit, Input } from '@angular/core'; +import { Component, OnInit, Input, ViewChild, ElementRef } from '@angular/core'; import { SimpleChanges } from '@angular/core/src/metadata/lifecycle_hooks'; @Component({ @@ -110,5 +110,10 @@ export class PieComponent implements OnInit { }) } + resize(size: number){ + this.chartIntance.resize( { + height: size - 250 + }) + } } -- cgit 1.2.3-korg