From 9fc0a6766ae8876b3f1caacb080f7f987f9f670a Mon Sep 17 00:00:00 2001 From: Axel Cureno Basurto Date: Thu, 14 Mar 2024 19:09:20 -0700 Subject: [PATCH 1/2] MWPW-144575: Fix for commerce modal height --- libs/blocks/modal/modal.merch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/blocks/modal/modal.merch.js b/libs/blocks/modal/modal.merch.js index 083c04e798..dcd146eaa7 100644 --- a/libs/blocks/modal/modal.merch.js +++ b/libs/blocks/modal/modal.merch.js @@ -61,7 +61,7 @@ export function adjustStyles({ dialog, iframe }) { if (isAutoHeightAdjustment) { dialog.classList.add('height-fit-content'); } else { - iframe.style.height = '100%'; + iframe.style.height = '100vh'; } } From fddd9f110d195b06a922d0fc7bd67ca618ea64f4 Mon Sep 17 00:00:00 2001 From: Axel Cureno Basurto Date: Thu, 14 Mar 2024 19:12:23 -0700 Subject: [PATCH 2/2] removed console log --- libs/blocks/modal/modal.merch.js | 1 - 1 file changed, 1 deletion(-) diff --git a/libs/blocks/modal/modal.merch.js b/libs/blocks/modal/modal.merch.js index dcd146eaa7..a49c1de1a6 100644 --- a/libs/blocks/modal/modal.merch.js +++ b/libs/blocks/modal/modal.merch.js @@ -57,7 +57,6 @@ function reactToMessage({ data, source }) { export function adjustStyles({ dialog, iframe }) { const isAutoHeightAdjustment = /\/mini-plans\/.*mid=ft.*web=1/.test(iframe.src); // matches e.g. https://www.adobe.com/mini-plans/photoshop.html?mid=ft&web=1 - console.log('isAutoHeightAdjustment', isAutoHeightAdjustment); if (isAutoHeightAdjustment) { dialog.classList.add('height-fit-content'); } else {