From 6ddb2de84245ae3914c92b2b2eb7399e7f04500e Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 16 Sep 2022 14:29:35 -0300 Subject: pretty --- packages/taler-wallet-webextension/src/mui/ModalManager.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'packages/taler-wallet-webextension/src/mui/ModalManager.ts') diff --git a/packages/taler-wallet-webextension/src/mui/ModalManager.ts b/packages/taler-wallet-webextension/src/mui/ModalManager.ts index b4a3ee597..eee037467 100644 --- a/packages/taler-wallet-webextension/src/mui/ModalManager.ts +++ b/packages/taler-wallet-webextension/src/mui/ModalManager.ts @@ -119,8 +119,9 @@ function handleContainer(containerInfo: Container, props: ManagedModalProps) { el: container, }); // Use computed style, here to get the real padding to add our scrollbar width. - container.style.paddingRight = `${getPaddingRight(container) + scrollbarSize - }px`; + container.style.paddingRight = `${ + getPaddingRight(container) + scrollbarSize + }px`; // .mui-fixed is a global helper. const fixedElements = @@ -131,8 +132,9 @@ function handleContainer(containerInfo: Container, props: ManagedModalProps) { property: "padding-right", el: element, }); - element.style.paddingRight = `${getPaddingRight(element) + scrollbarSize - }px`; + element.style.paddingRight = `${ + getPaddingRight(element) + scrollbarSize + }px`; }); } @@ -142,7 +144,7 @@ function handleContainer(containerInfo: Container, props: ManagedModalProps) { const containerWindow = ownerWindow(container); const scrollContainer = parent?.nodeName === "HTML" && - containerWindow.getComputedStyle(parent).overflowY === "scroll" + containerWindow.getComputedStyle(parent).overflowY === "scroll" ? parent : container; -- cgit v1.2.3