Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
aggiustate dimensione iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
leoniDEV committed Mar 14, 2020
1 parent 38d1644 commit 4752190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/COVID-19-Report-ITA.Web/resizer.ts
Original file line number Diff line number Diff line change
@@ -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`;
});
})

Expand Down

0 comments on commit 4752190

Please sign in to comment.