From 1ce0efe3b43c3d6b47932c6532beb74a430c176a Mon Sep 17 00:00:00 2001 From: Gourav More Date: Mon, 14 Oct 2024 23:37:53 +0530 Subject: [PATCH] Issue #fix: Iframe height issue fixes --- src/views/Practice/Practice.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/Practice/Practice.jsx b/src/views/Practice/Practice.jsx index 810d046c..1277ab63 100644 --- a/src/views/Practice/Practice.jsx +++ b/src/views/Practice/Practice.jsx @@ -690,7 +690,10 @@ const Practice = () => { questions[currentQuestion]?.contentSourceData || []; const stringLengths = contentSourceData.map((item) => item.text.length); const length = - mechanism?.name != "readTheImage" ? stringLengths[0] : 1000; + questions[currentQuestion]?.mechanics_data[0]?.mechanics_id === + "mechanic_2" + ? 300 + : stringLengths[0]; window.parent.postMessage({ type: "stringLengths", length }, "*"); } }