Skip to content

Commit

Permalink
Issue #fix: Iframe height issue fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gouravmore committed Oct 14, 2024
1 parent 6e1914f commit 1ce0efe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/Practice/Practice.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }, "*");
}
}
Expand Down

0 comments on commit 1ce0efe

Please sign in to comment.