From ac5988b1fbd15d0afc3b7f038a5cf795d781865b Mon Sep 17 00:00:00 2001 From: Ajinkya Pande Date: Fri, 25 Oct 2024 12:35:08 +0530 Subject: [PATCH 1/2] Issueid #0000 iframe height for fill in the blanks --- src/views/Practice/Practice.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/Practice/Practice.jsx b/src/views/Practice/Practice.jsx index 7b436aa0..4feabc65 100644 --- a/src/views/Practice/Practice.jsx +++ b/src/views/Practice/Practice.jsx @@ -716,9 +716,10 @@ const Practice = () => { questions[currentQuestion]?.contentSourceData || []; const stringLengths = contentSourceData.map((item) => item.text.length); const length = - questions[currentQuestion]?.mechanics_data && - questions[currentQuestion]?.mechanics_data[0]?.mechanics_id === - "mechanic_2" + (questions[currentQuestion]?.mechanics_data && + questions[currentQuestion]?.mechanics_data[0]?.mechanics_id === + "mechanic_2") || + "mechanic_1" ? 500 : stringLengths[0]; window.parent.postMessage({ type: "stringLengths", length }, "*"); From 75c4a0edc4d9ef7e4fccbaee1b851d409c382665 Mon Sep 17 00:00:00 2001 From: Ajinkya Pande Date: Fri, 25 Oct 2024 12:46:45 +0530 Subject: [PATCH 2/2] Issueid #0000 iframe height for fill in the blanks --- src/views/Practice/Practice.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/Practice/Practice.jsx b/src/views/Practice/Practice.jsx index 4feabc65..5fd15360 100644 --- a/src/views/Practice/Practice.jsx +++ b/src/views/Practice/Practice.jsx @@ -719,7 +719,8 @@ const Practice = () => { (questions[currentQuestion]?.mechanics_data && questions[currentQuestion]?.mechanics_data[0]?.mechanics_id === "mechanic_2") || - "mechanic_1" + questions[currentQuestion]?.mechanics_data[0]?.mechanics_id === + "mechanic_1" ? 500 : stringLengths[0]; window.parent.postMessage({ type: "stringLengths", length }, "*");