From 95d84ab3e056776629c91ce24924614221c3fee9 Mon Sep 17 00:00:00 2001 From: Rob Moffat Date: Thu, 28 Nov 2024 17:47:19 +0000 Subject: [PATCH] Added display block/none on Intent resolver iframe --- toolbox/fdc3-for-web/demo/src/client/ui/intent-resolver.ts | 2 ++ toolbox/fdc3-for-web/reference-ui/src/intent_resolver.ts | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/toolbox/fdc3-for-web/demo/src/client/ui/intent-resolver.ts b/toolbox/fdc3-for-web/demo/src/client/ui/intent-resolver.ts index c37bd9edb..73bf999f2 100644 --- a/toolbox/fdc3-for-web/demo/src/client/ui/intent-resolver.ts +++ b/toolbox/fdc3-for-web/demo/src/client/ui/intent-resolver.ts @@ -9,6 +9,7 @@ type IframeHello = BrowserTypes.Fdc3UserInterfaceHello const DEFAULT_COLLAPSED_CSS = { position: "fixed", + display: "none", zIndex: "1000", right: "0", bottom: "0", @@ -18,6 +19,7 @@ const DEFAULT_COLLAPSED_CSS = { const DEFAULT_EXPANDED_CSS = { position: "fixed", + display: "block", zIndex: "1000", left: "10%", top: "10%", diff --git a/toolbox/fdc3-for-web/reference-ui/src/intent_resolver.ts b/toolbox/fdc3-for-web/reference-ui/src/intent_resolver.ts index a7deb3f13..2e947fe38 100644 --- a/toolbox/fdc3-for-web/reference-ui/src/intent_resolver.ts +++ b/toolbox/fdc3-for-web/reference-ui/src/intent_resolver.ts @@ -174,7 +174,8 @@ window.addEventListener("load", () => { height: "100%", top: "0", left: "0", - position: "fixed" + position: "fixed", + display: "block", } } } @@ -193,7 +194,8 @@ window.addEventListener("load", () => { payload: { updatedCSS: { width: "0", - height: "0" + height: "0", + display: "none" } } }