From 4752190b66ca77a08487647569e239e052aed9a8 Mon Sep 17 00:00:00 2001 From: leoniDEV Date: Sat, 14 Mar 2020 07:19:45 +0100 Subject: [PATCH] aggiustate dimensione iframe --- src/COVID-19-Report-ITA.Web/resizer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/COVID-19-Report-ITA.Web/resizer.ts b/src/COVID-19-Report-ITA.Web/resizer.ts index aacaecc..bcc6ec5 100644 --- a/src/COVID-19-Report-ITA.Web/resizer.ts +++ b/src/COVID-19-Report-ITA.Web/resizer.ts @@ -1,8 +1,8 @@ function resize(target: Element, observedObj: Element): void { const resizeObsrv: ResizeObserver = new ResizeObserver((entries: ResizeObserverEntry[]) => { entries.forEach(element => { - (target as HTMLElement).style.width = `${element.contentRect.width * .975}px`; - (target as HTMLElement).style.height= `${element.contentRect.height * .9}px`; + (target as HTMLElement).style.width = `${element.contentRect.width * .98}px`; + (target as HTMLElement).style.height= `${element.contentRect.height * .925}px`; }); })